mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 11:10:08 +01:00
fix(ui): reserve scrollbar gutter in public TOC so it doesn't overlay text
This commit is contained in:
1 parent
fc66b37801
commit
bdde7173ea
2 files changed
+11
No files matched your search
@@ -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