fix: show scrollbars only when an inner area overflows

This commit is contained in:
fromme committed 2026-10-20 14:17:58 +02:00
1 parent e31f607f66
commit 3f806669c6
8 files changed
+25 -13

No files matched your search

+12
View File
@@ -32,3 +32,15 @@
cursor: pointer;
}
}
/*
* Thin scrollbars without a track for inner scrolling areas. The page scrollbar takes its
* style from <html>, which body * leaves out. Firefox and Chrome/Edge 121+ honour these;
* Safari keeps its own overlay scrollbars.
*/
@layer base {
body * {
scrollbar-width: thin;
scrollbar-color: var(--color-gray-300) transparent;
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
.scroll-container {
@apply overflow-scroll;
@apply overflow-auto;
max-height: calc(100vh - 320px);
}