调整folder顶部的终端按钮

This commit is contained in:
xintaofei
2026-03-28 10:32:51 +08:00
parent afa67380e7
commit e2b76132ba

View File

@@ -11,11 +11,11 @@ import {
Columns2, Columns2,
FileCode2, FileCode2,
MessageSquare, MessageSquare,
PanelBottom,
PanelLeft, PanelLeft,
PanelRight, PanelRight,
Search, Search,
Settings, Settings,
SquareTerminal,
} from "lucide-react" } from "lucide-react"
import { useTranslations } from "next-intl" import { useTranslations } from "next-intl"
import { getGitBranch, openFolderWindow, openSettingsWindow } from "@/lib/api" import { getGitBranch, openFolderWindow, openSettingsWindow } from "@/lib/api"
@@ -340,21 +340,6 @@ export function FolderTitleBar() {
> >
<PanelLeft className="h-3.5 w-3.5" /> <PanelLeft className="h-3.5 w-3.5" />
</Button> </Button>
<Button
variant="ghost"
size="icon"
className={`h-6 w-6 hover:text-foreground/80 ${terminalOpen ? "bg-accent" : ""}`}
onClick={() => toggleTerminal()}
title={tTitleBar("withShortcut", {
label: tTitleBar("toggleTerminal"),
shortcut: formatShortcutLabel(
shortcuts.toggle_terminal,
isMac
),
})}
>
<PanelBottom className="h-3.5 w-3.5" />
</Button>
<Button <Button
variant="ghost" variant="ghost"
size="icon" size="icon"
@@ -370,6 +355,21 @@ export function FolderTitleBar() {
> >
<PanelRight className="h-3.5 w-3.5" /> <PanelRight className="h-3.5 w-3.5" />
</Button> </Button>
<Button
variant="ghost"
size="icon"
className={`h-6 w-6 hover:text-foreground/80 ${terminalOpen ? "bg-accent" : ""}`}
onClick={() => toggleTerminal()}
title={tTitleBar("withShortcut", {
label: tTitleBar("toggleTerminal"),
shortcut: formatShortcutLabel(
shortcuts.toggle_terminal,
isMac
),
})}
>
<SquareTerminal className="h-3.5 w-3.5" />
</Button>
<Button <Button
variant="ghost" variant="ghost"
size="icon" size="icon"