From 68e977d645b9499395302576c66f5517d90fd06b Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Sun, 29 Mar 2026 18:29:59 +0100 Subject: [PATCH] Only apply scroll-lock padding compensation on desktop The padding-right added when Flux popovers lock scroll is only needed on desktop where custom scrollbars are visible. Wrap in @media (pointer: fine) to avoid unnecessary padding on mobile/touch devices. Co-Authored-By: Claude Opus 4.6 --- resources/css/app.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index acef73c7e..66556dbc6 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -79,9 +79,11 @@ } } -/* Compensate for custom scrollbar width when Flux locks scroll */ -html[data-flux-scroll-unlock] { - padding-right: 8px !important; +/* Compensate for custom scrollbar width when Flux locks scroll (desktop only) */ +@media (pointer: fine) { + html[data-flux-scroll-unlock] { + padding-right: 8px !important; + } } /* Scrollbar width */