Repository navigation
让文章目录的悬停按钮贴合文字 - #2
Merged
Merged
Conversation
Drop the resting left rule and show a text-width button only while a directory link is hovered. Co-authored-by: Jingwei Yuan <Musicaldg@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5251469. Configure here.
| .toc-title { font-size: 12px; color: var(--text-200); margin: 0 0 8px 8px; } | ||
| .toc-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; } | ||
| .toc-links a { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 8px; line-height: 1.45; color: var(--text-200); } | ||
| .toc-links a.toc-level-3 { margin-left: 14px; font-size: 12px; } |
There was a problem hiding this comment.
Level-3 TOC items overflow
Low Severity
Level-3 links combine margin-left with max-width: 100%. Margin sits outside that cap, so a wrapping heading is as wide as the column plus 14px and can make .desktop-toc scroll horizontally.
Reviewed by Cursor Bugbot for commit 5251469. Configure here.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


文章右侧目录去掉静止时的左侧竖线。每条目录只在悬停时出现浅色按钮,宽度跟文字本身一致。当前章节仍用蓝色文字标出,没有底色。
悬停时目录按钮贴合文字
toc-hover.mp4
To show artifacts inline, enable in settings.
Note
Low Risk
Presentation-only CSS for article TOC; no logic, markup, or mobile TOC block changes.
Reviewed by Cursor Bugbot for commit 5251469. Bugbot is set up for automated code reviews on this repo. Configure here.