部分样式调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user