From a6a8783319221d3b1ff717cb491d605f9b67f244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 20 Oct 2026 14:43:10 +0200 Subject: [PATCH] fix: show scrollbars only when an inner area overflows --- assets/styles/_theme.css | 12 ++++++++++++ templates/forms.html.twig | 2 +- templates/forms_admin.html.twig | 2 +- templates/layout_admin.html.twig | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/assets/styles/_theme.css b/assets/styles/_theme.css index 035907cb..97e9fb29 100644 --- a/assets/styles/_theme.css +++ b/assets/styles/_theme.css @@ -52,3 +52,15 @@ cursor: pointer; } } + +/* + * Thin scrollbars without a track for inner scrolling areas. The page scrollbar takes its + * style from , 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; + } +} diff --git a/templates/forms.html.twig b/templates/forms.html.twig index ace8b4af..be036ee1 100644 --- a/templates/forms.html.twig +++ b/templates/forms.html.twig @@ -237,7 +237,7 @@
-