From 3d05a44f3410a29f3b046654a3f7ef734569f6f4 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 16 Jul 2026 12:21:07 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=20AgentRun=20?= =?UTF-8?q?=E6=80=9D=E7=BB=B4=E5=AF=BC=E5=9B=BE=E7=94=BB=E5=B8=83=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/agent-observer-ui-contract.test.ts | 4 ++++ web/hwlab-cloud-web/src/styles/agent-observer.css | 1 + 2 files changed, 5 insertions(+) diff --git a/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts b/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts index e5d7c2ac..3a8be845 100644 --- a/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts +++ b/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts @@ -84,6 +84,10 @@ test("AgentRun workspace always owns the remaining grid row", () => { assert.match(styleSource, /agent-observer-workspace \{ grid-row: -2 \/ -1;/); }); +test("AgentRun mind map always owns the flexible tree row", () => { + assert.match(styleSource, /agent-observer-tree > \.agent-mind-map \{ grid-row: -2 \/ -1; \}/); +}); + function readSource(relativePath: string): string { return readFileSync(new URL(relativePath, import.meta.url), "utf8"); } diff --git a/web/hwlab-cloud-web/src/styles/agent-observer.css b/web/hwlab-cloud-web/src/styles/agent-observer.css index 90474532..469a084f 100644 --- a/web/hwlab-cloud-web/src/styles/agent-observer.css +++ b/web/hwlab-cloud-web/src/styles/agent-observer.css @@ -97,6 +97,7 @@ .agent-observer-card footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .agent-observer-tree { height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); } +.agent-observer-tree > .agent-mind-map { grid-row: -2 / -1; } .agent-mind-map { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--console-surface-muted); } .agent-mind-map-flow { width: 100%; height: 100%; } .agent-mind-map-flow .vue-flow__pane { cursor: grab; }