From 26ae483577814811f4ddc157b3c75de0dd1a351c Mon Sep 17 00:00:00 2001 From: lucamzanon Date: Sun, 11 Oct 2026 13:30:11 +0200 Subject: [PATCH] fix(mountain-view): let the collapsed rail fill its 72px column With the navigation collapsed, Mountain View gives the sidebar a 72px column, but the sidebar inside kept the default layout's 48px width. The round compose button was cut in half, the selected folder's highlight ran off the edge, and an empty strip showed before the message list. --- components/layout/sidebar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/layout/sidebar.tsx b/components/layout/sidebar.tsx index 452cacfdc..0693c4ad9 100644 --- a/components/layout/sidebar.tsx +++ b/components/layout/sidebar.tsx @@ -1258,7 +1258,9 @@ export function Sidebar({ "relative flex flex-col h-full border-e transition-all duration-300 overflow-hidden", "bg-secondary border-border", "max-lg:w-full", - isCollapsed ? "lg:w-12" : "lg:w-full", + // Mountain View's collapsed column is 72px (--mv-rail-w), wide enough + // for its round compose button; the default layout's rail is 48px. + isCollapsed && !mvShell ? "lg:w-12" : "lg:w-full", // Floats out of the rail's own column rather than widening it, so the // message list underneath never moves while the pointer passes over. // Width comes from --mv-rail-peek-w, keyed on data-mv-rail-peek.