From 74c8f51e95e42f0524ab1f61a09d6e2300b151ed Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Sat, 6 Jun 2026 11:51:45 -0500 Subject: [PATCH] fix(desktop): match file-browser default width to sessions sidebar Both rails now open at SIDEBAR_DEFAULT_WIDTH so a fresh window has equal-width sidebars instead of the old 237px vs 17rem mismatch. --- apps/desktop/src/store/layout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/store/layout.ts b/apps/desktop/src/store/layout.ts index e551d459a0f..f29605f7715 100644 --- a/apps/desktop/src/store/layout.ts +++ b/apps/desktop/src/store/layout.ts @@ -13,7 +13,8 @@ import { $paneStates, ensurePaneRegistered, setPaneOpen, setPaneWidthOverride, t export const SIDEBAR_DEFAULT_WIDTH = 237 export const SIDEBAR_MAX_WIDTH = 360 -export const FILE_BROWSER_DEFAULT_WIDTH = '17rem' +// Open at the same width as the sessions sidebar so the two rails match. +export const FILE_BROWSER_DEFAULT_WIDTH = `${SIDEBAR_DEFAULT_WIDTH}px` export const FILE_BROWSER_MIN_WIDTH = '14rem' export const FILE_BROWSER_MAX_WIDTH = '20rem'