diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 477f530..0c59f43 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -1,5 +1,5 @@ import { useCallback, useEffect, useState } from "react"; -import { Bot, CircleAlert, Loader2, ListChecks, Sparkles } from "lucide-react"; +import { Bot, CircleAlert, Loader2, ListChecks } from "lucide-react"; import type { Catalog, FlowDefinition, FlowSummary } from "@shared/types"; import { useEditorStore } from "./store/editorStore"; import { useRunStore } from "./store/runStore"; @@ -18,13 +18,6 @@ interface ToastState { kind: "ok" | "error"; } -const PAGE_LABEL: Record = { - tasks: "编排", - editor: "流程编排", - runs: "运行中心", - settings: "设置" -}; - function normalizeLegacyLinearLayout(flow: FlowDefinition): FlowDefinition { const topLevel = flow.nodes.filter((node) => !node.parentId); if (topLevel.length < 2) return flow; @@ -208,11 +201,6 @@ export function App() { RPA Studio - - - {page === "tasks" ? : page === "editor" ? : page === "runs" ? : } - {PAGE_LABEL[page]} -
diff --git a/src/renderer/src/styles/app.css b/src/renderer/src/styles/app.css index efbaa06..bdd8cf5 100644 --- a/src/renderer/src/styles/app.css +++ b/src/renderer/src/styles/app.css @@ -597,15 +597,24 @@ textarea:focus-visible { flex: 1; } +.canvas-toolbar .editor-breadcrumb { + flex: 1; + min-width: 0; +} + +.canvas-toolbar .toolbar-actions { + flex: 1; + justify-content: flex-end; +} + .flow-meta { min-width: 0; flex: none; max-width: 300px; display: flex; flex-direction: column; - align-items: flex-end; + align-items: center; gap: 2px; - margin-right: 6px; } .flow-name { @@ -619,7 +628,7 @@ textarea:focus-visible { min-width: 0; width: auto; max-width: 100%; - text-align: right; + text-align: center; } .flow-name:focus { @@ -630,7 +639,7 @@ textarea:focus-visible { .flow-sub { display: flex; align-items: center; - justify-content: flex-end; + justify-content: center; gap: 6px; color: var(--muted); font-size: 10.5px;