fix: 恢复 AgentRun 思维导图画布高度

This commit is contained in:
root
2026-07-16 12:21:07 +02:00
parent 166c5c7545
commit 3d05a44f34
2 changed files with 5 additions and 0 deletions
@@ -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");
}
@@ -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; }