refactor(tabs): drop sidebar count and terminal-tab folder badge, show folder in tab tooltip

This commit is contained in:
xintaofei
2026-04-21 22:23:23 +08:00
parent dd2b542df9
commit 1bf2c2afce
2 changed files with 2 additions and 21 deletions

View File

@@ -17,7 +17,6 @@ import {
ContextMenuSeparator,
ContextMenuTrigger,
} from "@/components/ui/context-menu"
import { FolderBadge } from "@/components/ui/folder-badge"
import {
Tooltip,
TooltipContent,
@@ -80,14 +79,8 @@ export function TerminalTabBar() {
: "text-muted-foreground hover:text-foreground hover:bg-muted"
}`}
onClick={() => switchTerminal(tab.id)}
title={`${folderIndex.get(tab.folderId) ?? String(tab.folderId)}${tab.title}`}
>
<FolderBadge
folderId={tab.folderId}
folderName={
folderIndex.get(tab.folderId) ?? String(tab.folderId)
}
size="sm"
/>
{editingId === tab.id ? (
<input
ref={inputRef}