fix(debugger): keep controls visible in narrow tool windows (#4507)

Debug controls and view tabs wrap onto separate rows as the tool window narrows, and the action buttons use the standard control size, so every action and view stays reachable in a side pane.
This commit is contained in:
l0ng-ai
2026-11-19 20:51:55 +08:00
committed by GitHub
parent 4fc55f7520
commit 18cd2ef63b
3 changed files with 84 additions and 44 deletions
@@ -19,20 +19,28 @@
}
.toolbar {
height: 32px;
min-height: 32px;
flex: none;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5);
padding: 0 8px 0 4px;
gap: var(--space-0-5) var(--space-2);
padding: var(--space-0-5) var(--space-2) var(--space-0-5) var(--space-1);
border-bottom: 1px solid var(--border);
min-width: 0;
overflow: hidden;
}
.actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5);
min-width: 0;
}
.tool {
width: 26px;
height: 26px;
width: var(--h-control);
height: var(--h-control);
flex: none;
}
@@ -46,17 +54,21 @@
.tabs {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5);
flex: none;
min-width: 0;
}
.tab {
height: 24px;
max-inline-size: 100%;
padding: 0 8px;
border-radius: var(--radius-small);
color: var(--fg);
font-size: var(--fs-ui);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tab:hover {