Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,13 @@ main { flex: 1; }
.math-block .katex-display > .katex { white-space: nowrap; }
.prose .katex { font-size: 1.05em; color: var(--text-100); }
.math-error { color: #9b3b32; }
.desktop-toc { position: sticky; top: 36px; max-height: calc(100vh - 72px); overflow: auto; margin-top: 18px; }
.toc-title { font-size: 12px; color: var(--accent-200); margin-bottom: 14px; }
.toc-links { display: flex; flex-direction: column; font-size: 13px; }
.toc-links a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--primary-200); line-height: 1.55; color: var(--text-200); }
.toc-links a.toc-level-3 { font-size: 12px; padding-left: 22px; }
.toc-links a:hover, .toc-links a.active { color: var(--accent-200); border-color: var(--accent-200); }
.desktop-toc { position: sticky; top: 36px; max-height: calc(100vh - 72px); overflow: auto; margin-top: 12px; }
.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; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5251469. Configure here.

.toc-links a:hover { color: var(--accent-200); background: color-mix(in srgb, var(--primary-100) 78%, var(--bg-100)); }
.toc-links a.active { color: var(--accent-200); }
.mobile-toc { display: none; }
@media (max-width: 1000px) {
.article-page .wrap { max-width: 870px; }
Expand Down
Loading