The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): dock the sidebar rails down to 640px
Brooklyn Nicholson0b247df94fe0
diff --git a/apps/desktop/src/app/layout-constants.ts b/apps/desktop/src/app/layout-constants.tsindex 8799a88853d..60249b39259 100644--- a/apps/desktop/src/app/layout-constants.ts+++ b/apps/desktop/src/app/layout-constants.ts@@ -18,8 +18,15 @@ export const PAGE_INSET_NEG_X = '-mx-[clamp(1.25rem,4vw,4rem)]'// for Tailwind's scanner (see PAGE_INSET_X note).export const PAGE_MAX_W = 'max-w-[75rem]'-// Below this viewport width a docked sidebar leaves no room for content, so both-// rails auto-collapse into the hover-reveal overlay. Single source of truth for+// Narrowest window that still docks a rail in the grid; under it both rails+// leave the grid and become the hover-reveal overlay. Single source of truth for// the responsive collapse point.-export const SIDEBAR_COLLAPSE_BREAKPOINT_PX = 768-export const SIDEBAR_COLLAPSE_MEDIA_QUERY = `(max-width: ${SIDEBAR_COLLAPSE_BREAKPOINT_PX}px)`+//+// A rail costs 237px (SIDEBAR_DEFAULT_WIDTH) and the chat beside it wants roughly+// what a popped-out session window enforces on itself (420px), so docking stops+// paying for itself around here — while still leaving an overlay band down to the+// window's own 400px minimum. Expressed as a dock floor rather than a collapse+// ceiling so half-screen splits stay docked on common laptop widths (1280 → 640).+export const SIDEBAR_DOCK_MIN_WIDTH_PX = 640+// `max-width` is inclusive: shave a hair so an exactly-640px window docks.+export const SIDEBAR_COLLAPSE_MEDIA_QUERY = `(max-width: ${SIDEBAR_DOCK_MIN_WIDTH_PX - 0.02}px)`