mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
fix(ui): reserve scrollbar gutter in public TOC so it doesn't overlay text
This commit is contained in:
@@ -126,6 +126,14 @@
|
||||
max-height: calc(100vh - var(--space-xl) - var(--space-2xl));
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
/* Reserve right gutter on the scroll container itself (padding, not
|
||||
margin) so the native scrollbar never overlays the TOC text. */
|
||||
padding-right: var(--space-3xs);
|
||||
}
|
||||
|
||||
/* Keep the caret/summary aligned with the reserved gutter */
|
||||
.toc summary {
|
||||
padding-right: var(--space-3xs);
|
||||
}
|
||||
|
||||
.toc summary {
|
||||
|
||||
Reference in New Issue
Block a user