Skip to content

fix(desktop): stop clipping the tool name in the card header#4208

Merged
esengine merged 1 commit into
main-v2from
fix/toolname-clip
Jun 12, 2026
Merged

fix(desktop): stop clipping the tool name in the card header#4208
esengine merged 1 commit into
main-v2from
fix/toolname-clip

Conversation

@esengine

Copy link
Copy Markdown
Owner

Follow-up to #4206. After the status icon + count moved into tool__label-group left of the name, that group's max-width: 70% + overflow: hidden hard-cut the (non-shrinking) tool name whenever icons + name reached the cap with no subject to absorb the overflow — a sub-agent explore card rendered as explor, research as resea…-with-no-ellipsis.

Fix: drop the fixed cap + hard clip on the group and let it shrink as a flex unit (flex: 0 1 auto). The subject keeps ellipsizing via its own rule, the name stays whole, and tool__duration is pinned (flex-shrink: 0) so a long subject can't squeeze it out. In an extreme-narrow card the chevron clips before the name now, which is the right priority.

Verified pnpm --dir desktop/frontend check:css green.

tool__label-group was capped at max-width:70% with overflow:hidden, so a
non-shrinking tool name was hard-cut (e.g. a sub-agent "explore" rendered as
"explor") once the ⊞count + status icon + name reached the cap with no subject
to absorb the overflow. Let the group shrink as a flex unit instead — the
subject keeps ellipsizing, the name stays whole — and pin the duration so a
long subject can't squeeze it out.
@esengine esengine requested a review from SivanCola as a code owner June 12, 2026 15:19
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 12, 2026
@esengine esengine merged commit 500fb1d into main-v2 Jun 12, 2026
14 checks passed
@esengine esengine deleted the fix/toolname-clip branch June 12, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant