Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fix/control plane canvas size (#3192)

Tamer651118bd50ab
diff --git a/scripts/lib/control-pane/control-plane-view-ui.js b/scripts/lib/control-pane/control-plane-view-ui.js
index 2fe9e95cd..2abf84d9b 100644
--- a/scripts/lib/control-pane/control-plane-view-ui.js
+++ b/scripts/lib/control-pane/control-plane-view-ui.js
@@ -26,8 +26,8 @@ function renderControlPlaneViewHtml() {
header nav { margin-left: auto; font-size: 12px; }
header nav a { color: #8b949e; margin-left: 12px; text-decoration: none; }
header nav a:hover { color: #e6edf3; }
- #wrap { display: grid; grid-template-columns: 1fr 360px; height: calc(100vh - 49px); }
- #stage { position: relative; border-right: 1px solid #1f2630; }
+ #wrap { display: grid; grid-template-columns: 1fr 360px; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 49px); }
+ #stage { position: relative; height: 100%; min-height: 0; border-right: 1px solid #1f2630; }
canvas { width: 100%; height: 100%; display: block; }
#side { padding: 12px 14px; overflow-y: auto; }
#side h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #8b949e; margin: 14px 0 8px; }
diff --git a/scripts/lib/control-pane/proximity-viz.js b/scripts/lib/control-pane/proximity-viz.js
index 2688e8b6b..b173605a6 100644
--- a/scripts/lib/control-pane/proximity-viz.js
+++ b/scripts/lib/control-pane/proximity-viz.js
@@ -27,8 +27,8 @@ function renderProximityVizHtml() {
header { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1f2630; }
header h1 { font-size: 15px; margin: 0; }
header .sub { color: #8b949e; font-size: 12px; }
- #wrap { display: grid; grid-template-columns: 1fr 320px; height: calc(100vh - 49px); }
- #stage { position: relative; }
+ #wrap { display: grid; grid-template-columns: 1fr 320px; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 49px); }
+ #stage { position: relative; height: 100%; min-height: 0; }
canvas { width: 100%; height: 100%; display: block; }
#side { border-left: 1px solid #1f2630; padding: 12px 14px; overflow-y: auto; }
#side h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #8b949e; margin: 0 0 8px; }
diff --git a/tests/lib/control-plane-view-ui.test.js b/tests/lib/control-plane-view-ui.test.js
index 2d0ab7880..67bbca6c9 100644
--- a/tests/lib/control-plane-view-ui.test.js
+++ b/tests/lib/control-plane-view-ui.test.js
@@ -3,6 +3,15 @@
const assert = require('assert');
const vm = require('vm');
const { renderControlPlaneViewHtml } = require('../../scripts/lib/control-pane/control-plane-view-ui');
+const { renderProximityVizHtml } = require('../../scripts/lib/control-pane/proximity-viz');
+
+const controlPlaneHtml = renderControlPlaneViewHtml();
+assert.ok(controlPlaneHtml.includes('grid-template-rows: minmax(0, 1fr)'));
+assert.ok(controlPlaneHtml.includes('#stage { position: relative; height: 100%; min-height: 0;'));
+
+const proximityHtml = renderProximityVizHtml();
+assert.ok(proximityHtml.includes('grid-template-rows: minmax(0, 1fr)'));
+assert.ok(proximityHtml.includes('#stage { position: relative; height: 100%; min-height: 0;'));
async function renderResponse(ok, data) {
const elements = new Map();