diff --git a/ui/src/styles/layout.mobile.css b/ui/src/styles/layout.mobile.css index 35ec7e8fa..d6a82babe 100644 --- a/ui/src/styles/layout.mobile.css +++ b/ui/src/styles/layout.mobile.css @@ -1,3 +1,53 @@ +/* Tablet/Mobile nav fix (under 1100px) - single horizontal scroll row */ +@media (max-width: 1100px) { + /* Flatten nav into single horizontal scroll */ + .nav { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + gap: 6px; + padding: 10px 12px; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + scrollbar-width: none; + } + + .nav::-webkit-scrollbar { + display: none; + } + + /* Nav groups should flow inline, not stack */ + .nav-group { + display: contents; /* Flatten group wrapper - items flow directly into .nav */ + } + + .nav-group__items { + display: contents; /* Flatten items wrapper too */ + } + + /* Hide group labels on tablet/mobile */ + .nav-label { + display: none; + } + + /* Don't hide nav items even if group is "collapsed" */ + .nav-group--collapsed .nav-group__items { + display: contents; + } + + .nav-item { + padding: 8px 14px; + font-size: 13px; + border-radius: 10px; + white-space: nowrap; + flex-shrink: 0; + } + + .nav-item::before { + display: none; + } +} + /* Mobile-specific improvements */ @media (max-width: 600px) { .shell {