From 8271a69f458213460c7449103ead1b230012eb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 17 Aug 2026 16:14:25 +0200 Subject: [PATCH] fix: avoid content shift caused by scrollbar --- assets/styles/_utilities.css | 7 +++++++ assets/styles/app.css | 3 ++- templates/booking/_summary.html.twig | 2 +- templates/booking/create/step_1.html.twig | 2 +- templates/booking/create/step_2.html.twig | 2 +- templates/booking/create/step_2_participant.html.twig | 2 +- templates/booking/create/step_3.html.twig | 2 +- templates/booking/create/step_4.html.twig | 4 ++-- templates/booking/edit/index.html.twig | 2 +- templates/booking/edit/participant.html.twig | 2 +- templates/booking/index.html.twig | 2 +- templates/groups/booking/_offer_summary.html.twig | 2 +- templates/groups/booking/_summary.html.twig | 2 +- templates/groups/booking/offer.html.twig | 2 +- templates/groups/booking/step_1.html.twig | 2 +- templates/groups/booking/step_2.html.twig | 2 +- templates/groups/booking/step_3.html.twig | 2 +- templates/groups/booking/step_4.html.twig | 2 +- 18 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 assets/styles/_utilities.css diff --git a/assets/styles/_utilities.css b/assets/styles/_utilities.css new file mode 100644 index 0000000..09aebd2 --- /dev/null +++ b/assets/styles/_utilities.css @@ -0,0 +1,7 @@ +@layer utilities { + /* Reserve the scrollbar gutter so content does not shift width when a + scrollbar appears (e.g. when a collapsible section is opened). */ + .scroll-stable { + scrollbar-gutter: stable; + } +} diff --git a/assets/styles/app.css b/assets/styles/app.css index aff375a..c4a5ab7 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -4,4 +4,5 @@ @import "tailwindcss/components"; @import "_components.css"; -@import "tailwindcss/utilities"; \ No newline at end of file +@import "tailwindcss/utilities"; +@import "_utilities.css"; \ No newline at end of file diff --git a/templates/booking/_summary.html.twig b/templates/booking/_summary.html.twig index 5ba4e36..b638412 100644 --- a/templates/booking/_summary.html.twig +++ b/templates/booking/_summary.html.twig @@ -19,7 +19,7 @@ {# Content - toggleable on mobile, always visible on desktop #} -