Repository navigation
fix(web): keep hover-reveal action icons visible on touch devices - #5501
Conversation
Sidebar project/group action buttons (project actions, create worktree, group menu, collapse chevron) and other row affordances hide with `opacity-0` and fade in via `group-hover`. Touch devices have no hover, so the controls stayed invisible while remaining clickable — the reported "missing icons" bug in the mobile/web view. Add a Tailwind `can-hover` variant (active only under `@media (hover: hover)`) and gate every hover-reveal's base `opacity-0` behind it, so touch (`hover: none`) keeps the icons visible while pointer devices preserve the reveal-on-hover behavior. Swap and focus-driven reveals are left untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you:
Chapters generated by Stage for commit ad5bb01 on Jun 16, 2026 10:36pm UTC. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between ed4b6aceb070b1ae9f683cd9c0cbcce22ece862a and ad5bb01. 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughA new 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx (1)
542-542:⚠️ Potential issue | 🟠 Major | ⚡ Quick winMissed touch-visibility conversion for worktree action overlay.
Line 542 still uses bare
opacity-0, so this control remains hidden onhover: nonedevices and keeps the original bug in this row. Switch it tocan-hover:opacity-0to match the rollout pattern.Suggested patch
- <div className="absolute inset-0 flex items-center justify-end gap-0.5 opacity-0 pointer-events-none transition-opacity group-hover/wtrow:opacity-100 group-hover/wtrow:pointer-events-auto group-focus-within/wtrow:opacity-100 group-focus-within/wtrow:pointer-events-auto"> + <div className="absolute inset-0 flex items-center justify-end gap-0.5 can-hover:opacity-0 pointer-events-none transition-opacity group-hover/wtrow:opacity-100 group-hover/wtrow:pointer-events-auto group-focus-within/wtrow:opacity-100 group-focus-within/wtrow:pointer-events-auto">
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: e24ac679-9a4d-4e0a-ab47-af9df117a595
📒 Files selected for processing (26)
src/renderer/src/assets/main.csssrc/renderer/src/components/activity/ActivityPrototypePage.tsxsrc/renderer/src/components/browser-pane/BrowserPane.tsxsrc/renderer/src/components/dashboard/DashboardAgentRow.tsxsrc/renderer/src/components/editor/CombinedDiffViewer.tsxsrc/renderer/src/components/editor/DiffSectionHeader.tsxsrc/renderer/src/components/github-project/ProjectPicker.tsxsrc/renderer/src/components/github-project/ProjectRow.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionRow.tsxsrc/renderer/src/components/right-sidebar/ChecksPanel.tsxsrc/renderer/src/components/right-sidebar/PortsPanel.tsxsrc/renderer/src/components/right-sidebar/SourceControl.tsxsrc/renderer/src/components/right-sidebar/checks-panel-content.tsxsrc/renderer/src/components/settings/MobilePairingQrSection.tsxsrc/renderer/src/components/settings/ShortcutBindingRow.tsxsrc/renderer/src/components/settings/VoiceSpeechModelSection.tsxsrc/renderer/src/components/sidebar/HostSectionHeaderMenu.tsxsrc/renderer/src/components/sidebar/PendingWorktreeRow.tsxsrc/renderer/src/components/sidebar/WorkspaceKanbanStatusLane.tsxsrc/renderer/src/components/sidebar/WorktreeCardPorts.tsxsrc/renderer/src/components/sidebar/WorktreeCardStatusSlot.tsxsrc/renderer/src/components/sidebar/WorktreeList.tsxsrc/renderer/src/components/sidebar/worktree-list-touch-action-visibility.test.tssrc/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsxsrc/renderer/src/components/status-bar/ports-status-popover-rows.tsxsrc/renderer/src/components/tab-bar/TabBarQuickCommandsMenu.tsx
- AiVaultSessionRow: keep resume button tappable on touch (base pointer-events-auto, gated off only on hover-capable devices) so the now-visible icon is actually interactive inside the pointer-events-none wrapper - SourceControl: add focus-visible reveal to copy/delete note buttons so keyboard users see them, matching the sibling clear-notes button Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: adce4470-14c4-4a60-abcf-761b9073ac35
📥 Commits
Reviewing files that changed from the base of the PR and between 29b27c2 and 76e621f66e220fa21e892d377d644d5c5bfc677c.
📒 Files selected for processing (3)
src/renderer/src/components/ports/WorkspacePortScanner.tsxsrc/renderer/src/lib/workspace-port-scan-debounce.test.tssrc/renderer/src/lib/workspace-port-scan-debounce.ts
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 0ba4dc8c-7c8a-430c-a112-6bb2932c69bb
📥 Commits
Reviewing files that changed from the base of the PR and between 76e621f66e220fa21e892d377d644d5c5bfc677c and ed4b6aceb070b1ae9f683cd9c0cbcce22ece862a.
📒 Files selected for processing (1)
src/renderer/src/components/ports/WorkspacePortScanner.tsx
ed4b6ac to
29b27c2
Compare
Co-authored-by: Orca <[email protected]>
Jinwoo-H
left a comment
There was a problem hiding this comment.
Thanks for the fix. I found and patched a couple of related touch/no-hover edge cases during review:
- prevented dashboard timestamp/dismiss-icon overlap on touch
- kept Activity jump actions and Resource Manager row actions visible on no-hover devices
- broadened the regression guard across the touched hover-reveal surfaces
Verified with typecheck, lint, affected Vitest suites, and Electron desktop + touch-emulated UI validation.
What
Sidebar project/group action buttons — project actions, create worktree, group menu, collapse chevron — and similar row affordances across the app render no icon in the web/mobile view on touch devices. The buttons are present (tooltips work, they're tappable) but the glyph is invisible.
Why
These are hover-reveal controls: they start at
opacity-0and fade in viagroup-hover:opacity-100. Touch devices have no hover, sogroup-hovernever fires and the control stays fully transparent — while still occupying layout and remaining clickable. That's exactly the reported "missing icons on mobile" symptom. (A prior one-off inline patch atSourceControl.tsxalready used[@media(hover:none)]:opacity-100for the same reason, confirming the cause.)This is not a bundling, CSP, or asset-serving issue — the rest of the UI renders fine, so the lucide inline SVGs are present; only their computed opacity differs.
Fix
can-hovervariant inassets/main.css, active only under@media (hover: hover).opacity-0behind it (can-hover:opacity-0). On touch (hover: none) the hide rule is excluded entirely, so icons stay visible; on pointer devices the reveal-on-hover behavior is unchanged.Intentionally left untouched:
WorktreeCardStatusSlotunread swap — the always-visible status dot means the button never lacks an icon on touch (only the no-default-icon branch was gated).LinearIssueTextEditorpeer-focuscounter — focus works on touch.md:opacity-0responsive reveals — already hidden only atmd+, so already mobile-visible.Tests
Added
worktree-list-touch-action-visibility.test.ts: asserts thecan-hovervariant is declared and that no hover-reveal inWorktreeListuses a bareopacity-0(drag placeholders withpointer-events-noneare exempt). Verified it fails on the pre-fix code and passes after.Verification
Manually confirmed in the local web/mobile view: the sidebar action icons now render on a touch /
(hover: none)context, and desktop hover behavior is unchanged.oxlintclean; affected component test suites pass.