diff --git a/src/client/changes/GitGraphSection.tsx b/src/client/changes/GitGraphSection.tsx index d5ddf10f..9b6968f2 100644 --- a/src/client/changes/GitGraphSection.tsx +++ b/src/client/changes/GitGraphSection.tsx @@ -14,7 +14,7 @@ import { import { api, SidebarApiError, type SessionScope } from '../api.ts' import type { SidebarDiffRef } from '../state.ts' import { relativeTime, t } from '../locales.ts' -import { ActionButton, Notice, SelectMenu } from '../ui/index.ts' +import { ActionButton, Notice } from '../ui/index.ts' import { AnchoredPopover } from '../AnchoredPopover.tsx' import { edgePath, layoutGraph } from './graph-layout.ts' import { createFrameBatcher } from '../frame-batcher.ts' @@ -351,13 +351,12 @@ export function GitGraphSection({ scope, worktree, visible, refreshTick = 0, onP data-graph-count={page?.entries.length ?? 0}>
{linearFallback && {t('graphLinearFallback')}} - {!linearFallback && ({ value: item.ref, label: item.name })), - ...(branch && !branches.some(item => item.ref === branch) ? [{ value: branch, label: branch }] : []), - ]} />} + {!linearFallback && }
{ @@ -370,7 +369,7 @@ export function GitGraphSection({ scope, worktree, visible, refreshTick = 0, onP { if (stale || !failedAppend.current) setRetry(value => value + 1); else void request(true) }}>{t('retry')}
} {loading && {t('loading')}} - {!loading && !error && page !== null && page.entries.length === 0 && {t(page.isRepo ? 'graphEmpty' : 'notRepo')}} + {!loading && !error && page !== null && page.entries.length === 0 &&
{t(page.isRepo ? 'graphEmpty' : 'notRepo')}
} {range.top > 0 &&