Skip to content

Commit dc9c671

Browse files
committed
fix: lock sidebar-inset scroll while a modal is open
Radix locks scroll on <body>, but the dashboard's actual scroll container is the sidebar's <main data-slot="sidebar-inset">, so the background stayed scrollable behind dialogs/sheets. Extend the lock to that container using the same data-scroll-locked attribute Radix already sets. Fixes Dokploy#5064
1 parent 561fb43 commit dc9c671

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/dokploy/styles/globals.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@
132132
}
133133
}
134134

135+
body[data-scroll-locked] [data-slot="sidebar-inset"] {
136+
overflow: hidden !important;
137+
}
138+
135139
@utility no-scrollbar {
136140
/* Chrome, Safari and Opera */
137141
&::-webkit-scrollbar {

0 commit comments

Comments
 (0)