swarm ui: the terminal's status badges overhaul
The connection is a light on the agent's icon instead of a "live" badge, the model and the effort are one badge, the context badge has an icon, subagents and a new bash tasks badge are an icon and a count, and an agent's tab shows a drag grip on hover. It also removes two things the overhaul replaces: the cost badge, and the "split" badge with its menu in group panes (splitting is by dragging a tab, or from the subagents list).
This commit is contained in:
parent
e9e71a09ac
commit
3a846c8c45
1 changed files with 430 additions and 199 deletions
|
|
@ -200,6 +200,33 @@
|
|||
.shell-tab-active {
|
||||
border-color: var(--pink);
|
||||
}
|
||||
/* A tab that can be dragged onto a terminal to split it shows a grip in a gutter
|
||||
of its own on hover, so the drag is discoverable. The gutter is part of the
|
||||
padding, so the tab does not change size when the grip appears. */
|
||||
.shell-tab-draggable {
|
||||
position: relative;
|
||||
padding-left: 1.3em;
|
||||
cursor: grab;
|
||||
}
|
||||
.shell-tab-grip {
|
||||
position: absolute;
|
||||
left: 0.35em;
|
||||
top: 50%;
|
||||
display: inline-flex;
|
||||
color: var(--muted);
|
||||
opacity: 0;
|
||||
transform: translateY(-50%);
|
||||
transition: opacity 0.15s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
.shell-tab-draggable:hover .shell-tab-grip {
|
||||
opacity: 0.9;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.shell-tab-grip {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
.shell-tab-link {
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
|
|
|
|||
Loading…
Reference in a new issue