diff --git a/ui/src/styles/config.css b/ui/src/styles/config.css index c90dfd9be31..916e4429b06 100644 --- a/ui/src/styles/config.css +++ b/ui/src/styles/config.css @@ -12,9 +12,24 @@ border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--panel); + overflow: hidden; /* fallback for older browsers */ overflow: clip; } +/* Mobile: adjust margins to match mobile .content padding (4px 4px 16px) */ +@media (max-width: 600px) { + .config-layout { + margin: 0; /* safest: no negative margin cancellation on mobile */ + } +} + +/* Small mobile: even smaller padding */ +@media (max-width: 400px) { + .config-layout { + margin: 0; + } +} + /* =========================================== Sidebar =========================================== */ @@ -377,6 +392,7 @@ min-height: 0; min-width: 0; background: var(--panel); + overflow: hidden; /* fallback for older browsers */ overflow: clip; }