From d73348719e37e90a8d914a32764d5d5a653a6579 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sat, 13 Jun 2026 07:34:53 +0000 Subject: [PATCH] chore: generate --- packages/app/src/components/titlebar.tsx | 112 +++++++++++------------ 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/packages/app/src/components/titlebar.tsx b/packages/app/src/components/titlebar.tsx index ef12b827c0..9fc49c0a41 100644 --- a/packages/app/src/components/titlebar.tsx +++ b/packages/app/src/components/titlebar.tsx @@ -454,78 +454,78 @@ export function Titlebar(props: { update?: TitlebarUpdate }) { {(tab, i) => { let ref!: HTMLDivElement - const divider = () => - i() !== 0 && ( -
- ) + const divider = () => + i() !== 0 && ( +
+ ) + + if (tab.type === "draft") { + return ( + <> + {divider()} + { + navigateTab(tab) + ref.scrollIntoView({ behavior: "instant" }) + }} + onClose={() => tabsStoreActions.removeTab(i())} + /> + + ) + } - if (tab.type === "draft") { return ( <> {divider()} - { navigateTab(tab) + ref.scrollIntoView({ behavior: "instant" }) }} onClose={() => tabsStoreActions.removeTab(i())} + active={currentTab() === tab} + activeServer={tab.server === server.key} + forceTruncate={tabsAreOverflowing()} /> ) - } + }} + + + {(_) => { + let ref!: HTMLDivElement - return ( - <> - {divider()} - { - navigateTab(tab) + onMount(() => { + ref.scrollIntoView({ behavior: "instant" }) + }) - ref.scrollIntoView({ behavior: "instant" }) - }} - onClose={() => tabsStoreActions.removeTab(i())} - active={currentTab() === tab} - activeServer={tab.server === server.key} - forceTruncate={tabsAreOverflowing()} - /> - - ) - }} - - - {(_) => { - let ref!: HTMLDivElement - - onMount(() => { - ref.scrollIntoView({ behavior: "instant" }) - }) - - return ( - <> -
- { - const tab = tabsStore.at(-1) - if (tab) navigateTab(tab) - else navigate("/") - }} - /> - - ) - }} - + return ( + <> +
+ { + const tab = tabsStore.at(-1) + if (tab) navigateTab(tab) + else navigate("/") + }} + /> + + ) + }} +