Merge pull request #1360 from pikasTech/fix/1358-webui-session-tab-sizing
fix: keep workbench session tabs content-sized
This commit is contained in:
@@ -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");
|
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");
|
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, "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");
|
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");
|
assert.doesNotMatch(appSource, /from ["']react["']|React\.StrictMode|createRoot|\.tsx/u, "React runtime references must not remain");
|
||||||
|
|
||||||
|
|||||||
@@ -590,7 +590,9 @@
|
|||||||
.session-list {
|
.session-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
align-content: start;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
|
grid-auto-rows: max-content;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -618,6 +620,7 @@
|
|||||||
.session-tab {
|
.session-tab {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-self: start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 34px;
|
min-height: 34px;
|
||||||
|
|||||||
Reference in New Issue
Block a user