fix: align top bar and sidebar

This commit is contained in:
Lucas
2026-10-28 11:05:02 +01:00
parent 96d48d9c19
commit fe253d5ae2
3 changed files with 23 additions and 23 deletions
+1 -5
View File
@@ -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 {
+13 -11
View File
@@ -309,26 +309,28 @@
}
}
@media (max-width: 768px) {
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
.topbar {
--header-height: 56px;
/* delete: --header-height: 56px; (it differs from the sidebar's 3.1rem) */
--tab-height: 40px;
gap: var(--space-2);
padding-inline: var(--space-2);
--logo-size: 2.2rem;
gap: 0;
padding-left: 0;
padding-right: var(--space-2);
}
/* Logo centred in the rail area; tabstrip's border-left lands exactly on the sidebar's right border */
.logo-slot {
height: 70%;
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;
margin-right: var(--space-2); /* replaces the gap we removed */
/* keep your existing gap / padding-left / scroll rules here */
}
.tabstrip::-webkit-scrollbar {
display: none;
+2
View File
@@ -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;
}
}