fix: small labels

This commit is contained in:
simosmik
2026-04-30 10:34:03 +00:00
parent 401df62f41
commit b81530ce69

View File

@@ -279,7 +279,7 @@ export default function CommandPalette({
{sessionsShown.map((s) => ( {sessionsShown.map((s) => (
<CommandItem <CommandItem
key={s.id} key={s.id}
value={`session-${s.id} ${s.label} ${s.snippet ?? ''}`.trim()} value={`${s.label} ${s.snippet ?? ''} ${s.id}`.trim()}
onSelect={() => run(() => navigate(`/session/${s.id}`))} onSelect={() => run(() => navigate(`/session/${s.id}`))}
> >
<MessageSquare className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden /> <MessageSquare className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
@@ -305,7 +305,7 @@ export default function CommandPalette({
{filesShown.map((f) => ( {filesShown.map((f) => (
<CommandItem <CommandItem
key={f.path} key={f.path}
value={`file-${f.path}`} value={f.path}
onSelect={() => run(() => ops.openFile(f.path))} onSelect={() => run(() => ops.openFile(f.path))}
> >
<FileText className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden /> <FileText className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
@@ -324,7 +324,7 @@ export default function CommandPalette({
{commitsShown.map((c) => ( {commitsShown.map((c) => (
<CommandItem <CommandItem
key={c.hash} key={c.hash}
value={`commit-${c.hash} ${c.message} ${c.author}`} value={`${c.message} ${c.author} ${c.shortHash}`}
onSelect={() => run(() => onShowTab?.('git'))} onSelect={() => run(() => onShowTab?.('git'))}
> >
<GitCommit className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden /> <GitCommit className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
@@ -344,7 +344,7 @@ export default function CommandPalette({
{branchesShown.map((b) => ( {branchesShown.map((b) => (
<CommandItem <CommandItem
key={`branch-${b.name}`} key={`branch-${b.name}`}
value={`branch-${b.name}`} value={b.name}
onSelect={() => run(() => { void git.checkout(b.name); onShowTab?.('git'); })} onSelect={() => run(() => { void git.checkout(b.name); onShowTab?.('git'); })}
> >
<GitMerge className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden /> <GitMerge className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
@@ -365,7 +365,7 @@ export default function CommandPalette({
function BrowseAllItem({ label, onSelect }: { label: string; onSelect: () => void }) { function BrowseAllItem({ label, onSelect }: { label: string; onSelect: () => void }) {
return ( return (
<CommandItem value={`browse-${label}`} onSelect={onSelect}> <CommandItem value={label} onSelect={onSelect}>
<ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden /> <ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
<span className="flex-1 text-muted-foreground">{label}</span> <span className="flex-1 text-muted-foreground">{label}</span>
</CommandItem> </CommandItem>