fix(dashboard): keep mobile terminal header on a single row

Previously the mobile terminal header used flex-wrap to stack tabs and
the action cluster on separate rows. The actions now stay pinned to the
right edge of the header row while the tab bar flexes to fill remaining
width and remains horizontally scrollable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-30 21:26:54 -07:00
parent 00de40da91
commit 2bac5d06fe
5 changed files with 77 additions and 14 deletions

View File

@@ -276,6 +276,10 @@
background: var(--card-hover);
}
.terminal-clear-btn--shortcut {
margin-left: var(--space-xs);
}
.terminal-log-container {
flex: 1;
overflow: hidden;
@@ -864,17 +868,17 @@
resize: none;
}
/* Stack tabs and actions on separate rows */
/* Keep tabs and header actions on a single row */
.terminal-header {
flex-wrap: wrap;
flex-wrap: nowrap;
padding-top: env(safe-area-inset-top, 0);
overflow: hidden;
}
/* Tabs get their own full-width row and remain scrollable */
/* Tabs stay scrollable and yield space to the fixed action cluster */
.terminal-tabs {
flex: 1 1 100%;
min-width: 100%;
order: 1;
flex: 1 1 auto;
min-width: 0;
}
/* Hide the redundant title/status indicator on mobile — .terminal-status-bar shows connection state */
@@ -882,13 +886,12 @@
display: none;
}
/* Actions sit on a compact second row */
/* Actions stay pinned to the right edge of the header row */
.terminal-actions {
flex: 1 1 100%;
order: 2;
flex: 0 0 auto;
justify-content: flex-end;
border-top: 1px solid var(--border);
padding: 0 4px;
border-top: none;
padding: 0 var(--space-xs) 0 0;
min-height: 36px;
}
@@ -1048,4 +1051,3 @@
}
}