Skip to content

Commit ec1b4d7

Browse files
simonhampclaude
andauthored
Only apply scroll-lock padding compensation on desktop (#311)
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 <noreply@anthropic.com>
1 parent 8e4bb24 commit ec1b4d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/css/app.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@
7979
}
8080
}
8181

82-
/* Compensate for custom scrollbar width when Flux locks scroll */
83-
html[data-flux-scroll-unlock] {
84-
padding-right: 8px !important;
82+
/* Compensate for custom scrollbar width when Flux locks scroll (desktop only) */
83+
@media (pointer: fine) {
84+
html[data-flux-scroll-unlock] {
85+
padding-right: 8px !important;
86+
}
8587
}
8688

8789
/* Scrollbar width */

0 commit comments

Comments
 (0)