swarm-ui: terminal tab fills the viewport below the header
The agent terminal tab now takes the whole window except the header bar, full width and height, instead of sitting in the padded content column. The connection badge floats inside the terminal's top-left corner and the toolbar row above it is gone on this route.
This commit is contained in:
parent
78e9f2ca67
commit
66df552f68
5 changed files with 87 additions and 51 deletions
|
|
@ -175,13 +175,16 @@ export function AgentTermPreview({
|
|||
(fullHeight ? " ui-agent-term-preview-full" : "")
|
||||
}
|
||||
>
|
||||
<div class="ui-agent-term-preview-toolbar">
|
||||
<Badge
|
||||
class="ui-agent-term-preview-status"
|
||||
tone={CONNECTION_TONE[connection]}
|
||||
value={CONNECTION_LABEL[connection]}
|
||||
/>
|
||||
{!fullHeight && (
|
||||
{/* The full-tab mount has no toolbar row: the terminal takes the
|
||||
whole page below the shell header, and the connection badge
|
||||
floats inside it with the other badges (below). */}
|
||||
{!fullHeight && (
|
||||
<div class="ui-agent-term-preview-toolbar">
|
||||
<Badge
|
||||
class="ui-agent-term-preview-status"
|
||||
tone={CONNECTION_TONE[connection]}
|
||||
value={CONNECTION_LABEL[connection]}
|
||||
/>
|
||||
<Badge
|
||||
class="ui-agent-term-preview-expand"
|
||||
variant="quiet"
|
||||
|
|
@ -190,9 +193,19 @@ export function AgentTermPreview({
|
|||
title={`open ${paths.label}'s terminal in its own tab`}
|
||||
onClick={() => openTab({ href: paths.page, label: paths.label })}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div class="terminal-wrap ui-agent-term-preview-wrap">
|
||||
{/* Full-tab mount only: the connection badge floats in the
|
||||
terminal's top-left corner (the other badges own the
|
||||
top-right), instead of sitting in a toolbar row above it. */}
|
||||
{fullHeight && (
|
||||
<Badge
|
||||
class="ui-agent-term-preview-status ui-agent-term-preview-live"
|
||||
tone={CONNECTION_TONE[connection]}
|
||||
value={CONNECTION_LABEL[connection]}
|
||||
/>
|
||||
)}
|
||||
{header && showHeaderBadges && (
|
||||
<div class="ui-agent-term-preview-header-badges">
|
||||
<Badge
|
||||
|
|
|
|||
Loading…
Reference in a new issue