diff --git a/src/components/Sidebar/Sidebar.css b/src/components/Sidebar/Sidebar.css index 03853b9..872b549 100644 --- a/src/components/Sidebar/Sidebar.css +++ b/src/components/Sidebar/Sidebar.css @@ -462,14 +462,10 @@ bottom: 0; padding-bottom: var(--safe-bottom); padding-left: var(--safe-left); - width: calc(var(--sidebar-width-collapsed) + var(--safe-left)); + width: var(--sidebar-rail-w); } - - /* Expanded = drawer on top of the content, not pushing it */ .sidebar-rail--expanded { width: calc(var(--sidebar-width-expanded) + var(--safe-left)); - z-index: 50; - box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45); } .app-root--sidebar-expanded .sidebar-backdrop { diff --git a/src/components/Topbar/Topbar.css b/src/components/Topbar/Topbar.css index bd6bf5b..b4c9c75 100644 --- a/src/components/Topbar/Topbar.css +++ b/src/components/Topbar/Topbar.css @@ -309,27 +309,29 @@ } } -@media (max-width: 768px) { +@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) { .topbar { - --header-height: 56px; - --tab-height: 40px; - gap: var(--space-2); - padding-inline: var(--space-2); - } + /* delete: --header-height: 56px; (it differs from the sidebar's 3.1rem) */ + --tab-height: 40px; + --logo-size: 2.2rem; + gap: 0; + padding-left: 0; + padding-right: var(--space-2); +} - .logo-slot { - height: 70%; - flex: 0 0 auto; - } +/* Logo centred in the rail area; tabstrip's border-left lands exactly on the sidebar's right border */ +.logo-slot { + flex: 0 0 auto; + height: var(--logo-size); + width: var(--logo-size); + margin-left: calc(var(--safe-left) + (var(--sidebar-width-collapsed) - 1px - var(--logo-size)) / 2); + margin-right: calc((var(--sidebar-width-collapsed) - 1px - var(--logo-size)) / 2); +} - .tabstrip { - gap: var(--space-2); - padding-left: var(--space-2); - scroll-snap-type: x mandatory; - scrollbar-width: none; - -webkit-overflow-scrolling: touch; - overscroll-behavior-x: contain; - } +.tabstrip { + margin-right: var(--space-2); /* replaces the gap we removed */ + /* keep your existing gap / padding-left / scroll rules here */ +} .tabstrip::-webkit-scrollbar { display: none; } diff --git a/src/variables.css b/src/variables.css index 5f15e12..464847c 100644 --- a/src/variables.css +++ b/src/variables.css @@ -87,6 +87,7 @@ /* ---------- SideBar ---------- */ --sidebar-width-collapsed: calc(var(--header-height) * 0.85 + 2 * var(--space-3)); --sidebar-width-expanded: 11rem; + --sidebar-rail-w: var(--sidebar-width-collapsed); /* ---------- DSP ---------- */ --dsp-control-heigth: 40%; @@ -106,6 +107,7 @@ --tab-height: 2.2rem; --sidebar-width-collapsed: 3.1rem; --sidebar-width-expanded: min(80vw, 15.5rem); + --sidebar-rail-w: calc(var(--sidebar-width-collapsed) + var(--safe-left)); --touch-target: 2.45rem; } } \ No newline at end of file