Skip to content

Commit c613c33

Browse files
authored
fix(app): tab overflow (anomalyco#30894)
1 parent 9431356 commit c613c33

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

packages/app/src/components/titlebar.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
242242
: undefined,
243243
"align-self": electronWindows() ? "flex-start" : undefined,
244244
}}
245-
// data-tauri-drag-region
245+
data-tauri-drag-region
246246
onMouseDown={drag}
247247
onDblClick={maximize}
248248
>
@@ -434,9 +434,12 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
434434
state={!!homeMatch() ? "pressed" : undefined}
435435
/>
436436

437-
<div class="flex min-w-0 flex-row items-center gap-1.5 overflow-x-auto no-scrollbar" ref={tabScrollRef}>
437+
<div
438+
class="flex min-w-0 flex-row items-center gap-1.5 overflow-x-auto no-scrollbar [app-region:no-drag]"
439+
ref={tabScrollRef}
440+
>
438441
<div class="flex min-w-0 flex-row items-center gap-1.5">
439-
<For each={[...tabsStore, ...tabsStore, ...tabsStore]}>
442+
<For each={tabsStore}>
440443
{(tab, i) => {
441444
let ref!: HTMLDivElement
442445

@@ -660,7 +663,7 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
660663
"flex items-center min-w-0 justify-end": true,
661664
"pr-2": !windows(),
662665
}}
663-
// data-tauri-drag-region
666+
data-tauri-drag-region
664667
onMouseDown={drag}
665668
>
666669
<div id="opencode-titlebar-right" class="flex items-center gap-1 shrink-0 justify-end" />
@@ -757,7 +760,6 @@ function TabNavItem(props: {
757760
const [session] = createResource(
758761
() => {
759762
const ctx = dirSyncCtx()
760-
console.log({ ctx, sessionId: props.sessionId })
761763
if (!ctx || !props.sessionId) return
762764
return [props.sessionId, ctx] as const
763765
},

0 commit comments

Comments
 (0)