From ca8159cd6792308bf7a90a83a9f16ee2b134b8f3 Mon Sep 17 00:00:00 2001 From: broisnees Date: Tue, 24 Nov 2026 08:38:17 +0000 Subject: [PATCH] Let the sidebar drag narrower than 320px The header row's tabs already fold into a "more" menu when they do not fit, so the 320px floor sized for every tab is no longer needed. The floor is now 200px, or 270px on macOS where the row clears the traffic lights. Double-clicking the AI chat list's handle resets to the default width instead of the floor. --- .changeset/narrower-sidebar.md | 2 ++ src/lib/components/AiChat.svelte | 4 ++-- src/lib/stores/layout.js | 16 +++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 .changeset/narrower-sidebar.md diff --git a/.changeset/narrower-sidebar.md b/.changeset/narrower-sidebar.md new file mode 100644 index 00000000..6e568545 --- /dev/null +++ b/.changeset/narrower-sidebar.md @@ -0,0 +1,2 @@ +### Changes +- **A narrower sidebar** - The left sidebar now drags down to 200px (270px on macOS, where it clears the window buttons) instead of stopping at 320px. Tabs that no longer fit move into the "more" menu at the end of the tab row. diff --git a/src/lib/components/AiChat.svelte b/src/lib/components/AiChat.svelte index f7a33a96..e3358524 100644 --- a/src/lib/components/AiChat.svelte +++ b/src/lib/components/AiChat.svelte @@ -149,7 +149,7 @@ import GitBranch from "@lucide/svelte/icons/git-branch"; import BarChart3 from "@lucide/svelte/icons/chart-column"; import ImageIcon from "@lucide/svelte/icons/image"; - import { loadLayout, setNavSidebarWidth, clampNavSidebarWidth, NAV_SIDEBAR_MIN, NAV_WIDTH_EVENT } from "$lib/stores/layout.js"; + import { loadLayout, setNavSidebarWidth, clampNavSidebarWidth, DEFAULT_LAYOUT, NAV_WIDTH_EVENT } from "$lib/stores/layout.js"; import Brain from "@lucide/svelte/icons/brain"; import AiModelPicker from "./AiModelPicker.svelte"; import { publishChatList, aiChatPending, aiChatList, takeChatRequest } from "$lib/stores/ai-chat-bridge.js"; @@ -4756,7 +4756,7 @@ {/if} -
{ sidebarWidth = externalToggle ? NAV_SIDEBAR_MIN : SIDEBAR_DEFAULT_W; saveSidebarWidth(); }} role="presentation"> +
{ sidebarWidth = externalToggle ? DEFAULT_LAYOUT.navSidebarWidth : SIDEBAR_DEFAULT_W; saveSidebarWidth(); }} role="presentation">