fix(transcript): make tool cards visually distinct without hover#2948
Conversation
The tool-card border-subtle was so faint that the cards visually melted into the surrounding prose once the cursor left the conversation. Bumps the resting border to --border-muted and adds a 2px left edge so a tool output row reads as metadata at a glance, even on light skins where border-subtle is barely visible. Hover still escalates to --border2. Verified by loading a session with mixed tool calls and assistant prose on the light theme and confirming the tool cards are now identifiable without mousing over them. Refs nesquena#2867
SummaryThanks for the patch @Sanjays2402 — the resting-state contrast bump is exactly the shape #2867 was asking for, and the choice to escalate on hover rather than abandon hover entirely is a nice touch. I read the diff ( There is one concrete regression I want to flag before this lands: the new Code referenceThe existing subagent indicator at /* Subagent cards: indented with accent border */
.tool-card-subagent{border-left:2px solid var(--accent-bg);margin-left:8px;}That class is applied in const isSubagent=tc.name==='subagent_progress';
const cardClass='tool-card'+(tc.done===false?' tool-card-running':'')
+(isSubagent?' tool-card-subagent':'');The PR's new rule at .tool-card{background:var(--surface-subtle);border:1px solid var(--border-muted);
border-left:2px solid var(--border-muted);border-radius:var(--radius-card);...}Both selectors have specificity (0,1,0), so source order wins. Diagnosis / RecommendationTwo equally cheap fixes — pick whichever you prefer: Option A — bump the subagent selector's specificity: .tool-card.tool-card-subagent{border-left:2px solid var(--accent-bg);margin-left:8px;}That moves it to specificity (0,2,0) and wins over the plain Option B — move the existing Option A is the more robust one — if anyone later adds another While you're in there: please also verify the Test planAfter the fix:
LGTM otherwise — small, contained, no DOM or JS change, and the CHANGELOG entry is well-scoped. |
…(review feedback from @nesquena-hermes)
|
Good catch on the cascade collision, fixed in 6dd6bce. Went with Option A ( |
a6c65de
# Conflicts: # CHANGELOG.md
The tool-card border was so faint at rest that the cards melted into surrounding assistant prose once the cursor left the conversation. Issue #2867 reports the same thing: distinction only on hover, not at rest.
This bumps the resting border to
--border-mutedand adds a 2px left edge. Hover still escalates to--border2. No layout change, no DOM change, no JS.Verified locally: loaded a session with mixed tool calls + final answer on the light theme. Tool cards are now identifiable at a glance, not just on hover. Re-checked the dark theme and the sienna/catppuccin/hepburn skins (which already override
.tool-cardwith their own border-color) — those skins keep their existing behavior because their override has higher specificity.Refs #2867