Repository navigation
fix(settings): reveal full shortcut titles on hover - #16806
Conversation
…s pane - Wrap shortcut title with Radix Tooltip primitives in ShortcutCommandBlock. - Enable full title visibility on hover when long command names are truncated. - Add unit test in ShortcutCommandBlock.test.tsx verifying tooltip trigger attachment.
Walkthrough
Priority: Severity of issue fixed: Low Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: e837a0c6-09d8-4c90-ad0b-6e252f3d8a21
📒 Files selected for processing (2)
src/renderer/src/components/settings/ShortcutCommandBlock.test.tsxsrc/renderer/src/components/settings/ShortcutCommandBlock.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Preserve the shortcut title tooltip and honor upstream's removal of cosmetic component tests. Run lint-staged against upstream/main to validate the PR change without reformatting merged upstream files.
…ncated Reuse TruncatedSidebarLabel so untruncated titles keep no tooltip (STYLEGUIDE Tooltips).
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1be22672-1e22-466f-8873-1c0d76a2f960
Files selected for processing: 1-
src/renderer/src/components/settings/ShortcutCommandBlock.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
| <TruncatedSidebarLabel | ||
| text={item.title} | ||
| className={cn('text-sm', isDisabled ? 'text-muted-foreground' : 'text-foreground')} | ||
| tooltipSide="top" | ||
| tooltipSideOffset={4} | ||
| /> |
There was a problem hiding this comment.
🎯 Functional Correctness |
Render the tooltip for untruncated titles.
TruncatedSidebarLabel returns a plain <span> when the title is not truncated. This call keeps that default behavior, so ordinary shortcut titles do not show a tooltip on hover. Use a variant or prop that renders the tooltip for every title while preserving the existing truncation styling.
|
Maintainer follow-up (ca7cd8c): merged current main and narrowed the tooltip to titles that are actually clipped. The title now reuses the existing |
Long action titles in Settings → Shortcuts are clipped without a way to reveal the full name. Hovering a clipped title now shows the complete localized action name. The title reuses the existing
TruncatedSidebarLabel(scrollWidth > clientWidth + ResizeObserver), so untruncated titles show no tooltip, per STYLEGUIDE Tooltips.Fixes #16805.
This retains hwantage's original implementation and exact commit
48dc545bc5aacb8cf4283b97b1a867ac982d1b37, merged with current main8f6283b32bcdefa746613e4c28d04bb1fe954eb9. The diff is one file: the title span is replaced byTruncatedSidebarLabelwith the same truncate/text-size/color classes and tab order. Untruncated titles render exactly as before (plain span, no tooltip).Reproduction and verification
The notes below were collected on the earlier always-on tooltip revision; the follow-up maintainer commit narrows the tooltip to clipped titles only.
git diff --checkpass.da0cd1a4e04596f812ac80fba0819638b71b3734: no blockers; low merge risk. Exact-head CI passes: PR Checks (all five unit shards, static/typecheck, Linux and Windows packages), Headless Node server selection, and PR test LoC. The selected Headless native jobs were skipped by its change filter.The renderer-only change adds no native, persistence, RPC, workspace or mobile dependency. Native Linux/Windows rendering, screen-reader and touch behavior were not physically exercised.
Original contributor's visual proof
Current-main before/after, ordinary-row and light-theme screenshots were captured and independently inspected locally. Upload of those new screenshots was unavailable because the GitHub attachment tool has no browser session; the images above are the original contributor's assets.
AI disclosure
Original implementation: Gemini 3.7 Flash via Antigravity, with hwantage. Current-main reproduction, history-preserving integration, verification and independent review: OpenAI Codex.