mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-24 12:48:47 +00:00
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 #5064
This commit is contained in:
@@ -132,6 +132,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body[data-scroll-locked] [data-slot="sidebar-inset"] {
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
@utility no-scrollbar {
|
@utility no-scrollbar {
|
||||||
/* Chrome, Safari and Opera */
|
/* Chrome, Safari and Opera */
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user