fix: keep session tabs content-sized

This commit is contained in:
lyon
2026-06-17 01:06:21 +08:00
parent 2b19081716
commit 7938427407
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -118,6 +118,7 @@ assertIncludes(appSource, "primaryAction.value === \"steer\"", "Composer primary
assertIncludes(appSource, ":data-action=\"primaryAction\"", "Composer primary button must expose the active turn/steer/cancel action");
assert.doesNotMatch(appSource, / Trace/u, "Workbench must not render a separate stale cancel-running-trace button");
assertIncludes(appSource, "session_required", "explicit session policy must be represented");
assertIncludes(appSource, "grid-auto-rows: max-content;", "Session list rows must keep content height instead of stretching a single tab");
assertIncludes(appSource, "CodeWorkbenchView", "Code Workbench must be a route view, not the app shell");
assert.doesNotMatch(appSource, /from ["']react["']|React\.StrictMode|createRoot|\.tsx/u, "React runtime references must not remain");
@@ -590,7 +590,9 @@
.session-list {
display: grid;
min-height: 0;
align-content: start;
gap: 6px;
grid-auto-rows: max-content;
overflow: auto;
}
@@ -618,6 +620,7 @@
.session-tab {
position: relative;
display: flex;
align-self: start;
align-items: center;
min-width: 0;
min-height: 34px;