The native port is finished off with the readability work the earlier rounds left open, plus the cleanup of everything the shadcn era or the older canvas left behind. - Geometry: node height is now composed from named parts (chrome, two title lines, meta row) and per-node extras, so a teammate card that carries a task line no longer gets clipped by the old fixed 68px budget; the layout spec follows the new model and GRAPH_ROW_STRIDE stays exported for it. - Readability: row rhythm (28-32px), three ink levels for title/meta/owner, truncation with title hints, current-row and hover expressed as an accent bar plus a hover fill (no shadows), phase frames and edges back on the l1/l2 hairlines, control cluster uniformly 28px, drawer durations on tabular figures, kill action revealed on hover/focus without shifting the row, no horizontal overflow at 360px. - Task window: the markdown body is pulled onto the page scale (12px body, 12/13px headings, tightened list indent and paragraph spacing) while the shared MarkdownText/markdownTextProps contract is untouched. - Cleanup: dead stylesheet rules, unused TSX exports and helpers, stale comments that still described the retired Variant-D canvas, zero-reference i18n keys across the dictionaries, and the Tailwind/shadcn/Variant-D narrative in the design doc, AGENTS.md and the plugin guide (kept as one short "why it was rolled back" section). Verified here: typecheck and lint clean; 133 files / 1413 tests; build with no radix-ui or --tw- strings in lib/client.js (988.9 KiB); the 70-assertion real-browser contract at 70/70 with the 20 reference screenshots regenerated; mount e2e 7/7.
127 lines
4.0 KiB
CSS
127 lines
4.0 KiB
CSS
/* Tasks page shell: header row, empty/error states, and the state dot. The
|
|
graph canvas / tree rows / popovers / jobs drawer live in
|
|
tasks-graph.module.css; the old indentation-tree and jobs-dock classes
|
|
were pruned when the page moved to the unified model. */
|
|
.subagent {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* The page header wears the plugin's own page-header rhythm (sidebar.module.css
|
|
`.explorerHeader` / `.gitDiffTabHeader`): one control tall (28px) with the
|
|
standard 12px gutter, the 1px l1 rule closing the toolbar off from the canvas
|
|
(changes.module.css `.gitSection`), and a title/subject/meta hierarchy —
|
|
the page name reads first, the session it belongs to follows, the tree
|
|
readout closes the row as mono micro type. */
|
|
.subagentHeader {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 36px;
|
|
padding: 0 8px 0 12px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
/* The page name + its session title share one baseline, so the 12px title and
|
|
the 11px dimmed subject read as one line of text rather than two boxes. The
|
|
heading clips (its own box only — the subject ellipsizes first), so a panel
|
|
narrower than the page name cannot push the separator into the count. */
|
|
.subagentHeading {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.subagentTitle {
|
|
flex: none;
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
color: var(--dsw-alias-label-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The session the tree is rooted at: context, not the page name — it yields
|
|
first when the header runs out of room. */
|
|
.subagentSubject {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The separator rides the subject's own ink, not the host's `label-dimmed`
|
|
(which host.css uses for `::placeholder` only): at 1.26:1 the dot vanished
|
|
and the title read as two adjacent strings, while the OTHER separator on the
|
|
same row (inside `.subagentCount`) is `label-secondary`. */
|
|
.subagentSep {
|
|
flex: none;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* The descendant count readout ("3 个子代理 · 1 运行中"): mono micro type with
|
|
tabular figures, so the ticking numbers never shift the row it closes. */
|
|
.subagentCount {
|
|
flex: none;
|
|
font-family: var(--ds-font-family-code, monospace);
|
|
font-size: 10px;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--dsw-alias-label-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The header's refresh control is the host ghost Button (28px tall, hover fill
|
|
from `--dsw-alias-interactive-bg-hover`); the class only keeps it from being
|
|
squeezed by a long session title. */
|
|
.subagentRefresh {
|
|
flex: none;
|
|
}
|
|
|
|
.subagentEmpty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 16px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
text-align: center;
|
|
}
|
|
|
|
/* One rung above `.subagentEmpty`, sized one step down — the same ink the
|
|
plugin's other empty panes use (`.explorerEmpty`, `.gitPlaceholder`). The
|
|
host's `label-dimmed` is its `::placeholder` ink; a whole sentence in it
|
|
measured 1.26:1 and was unreadable. */
|
|
.subagentEmptyHint {
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.subagentError {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
/* The banner's retry is the host outline Button (28px); the class keeps the
|
|
action from being squeezed by the failure message. */
|
|
.subagentErrorRetry {
|
|
flex: none;
|
|
}
|
|
|
|
/* The background-job drawer (bar, rows, output popover) is styled entirely in
|
|
tasks-graph.module.css — its `.jobs*` rules used to live here as dead copies
|
|
of the pre-drawer in-page section and were pruned. */
|
|
|