部分样式调整

This commit is contained in:
xiaozhu
2026-08-31 11:10:49 +08:00
parent 9badd3597f
commit cc38bb1575
3 changed files with 71 additions and 23 deletions
+3 -10
View File
@@ -2,7 +2,7 @@ import { ChevronRight, LayoutGrid } from "lucide-react";
import type { AuthUser, AuthWorkspace } from "../../context/AuthContext";
type TopbarProps = {
activePage: string;
pageTitle: string;
apiOnline: boolean;
user: AuthUser | null;
currentWorkspace: AuthWorkspace;
@@ -14,7 +14,7 @@ type TopbarProps = {
};
export function Topbar({
activePage,
pageTitle,
apiOnline,
user,
currentWorkspace,
@@ -24,13 +24,6 @@ export function Topbar({
onSetCurrentWorkspace,
onLogout,
}: TopbarProps) {
const pageTitles: Record<string, string> = {
home: "工作台",
scripts: "构建脚本",
schedules: "调度配置",
system: "系统管理",
};
return (
<header className="relative z-[2] flex h-[70px] min-h-[70px] items-center justify-between border-b border-[#dfe6ee] bg-white px-[22px]">
<div className="flex items-center gap-[9px]">
@@ -45,7 +38,7 @@ export function Topbar({
</span>
<h1 className="m-0 mt-px text-[18px] leading-[1.1] text-[#14243a]">
{pageTitles[activePage] || "工作台"}
{pageTitle}
</h1>
</div>
</div>