fix(web): align sidebar settle hit area - #5333
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
ApprovabilityVerdict: Approved a9f00fd This PR makes minor CSS class changes to fix sidebar hit area targeting. The modifications only affect pointer-events and z-index styling with no logic or runtime behavior changes beyond UI interaction. You can customize Macroscope's approvability policy. Learn more. |
Summary
Fixes #5330.
The Sidebar V2 card row showed the Settle control, but its visible label did not match the clickable area. Clicking the gap beside Snooze worked while clicking the displayed Settle text could miss the action.
Root cause
The status label and lifecycle actions share one slot. The action layer remained pointer-active while hidden and could stack above the status label during the hover transition.
Changes
Validation
Note
Fix sidebar row controls to not intercept pointer events when hidden
The controls container in
SidebarV2Rowwas capturing pointer events even when invisible, interfering with adjacent content. Addspointer-events-noneby default and restorespointer-events-autoonly on hover, focus-visible, or when the snooze menu is open. Also addsz-10so the controls render above adjacent content when visible.Macroscope summarized ac4716b.
Note
Low Risk
Small CSS-only change to sidebar row pointer hit-testing with no auth, data, or API impact.
Overview
Fixes Sidebar V2 card rows where the Settle label looked clickable but clicks often missed, while empty space near Snooze still worked.
The settle/snooze wrapper in
SidebarV2Rownow usespointer-events-nonewhile the controls are hidden (opacity-0/ absolute), andpointer-events-autoonly when row hover,:focus-visible, or an open snooze menu shows them.z-10keeps that layer above the status text when visible. This mirrors the existingpointer-events-noneon the fading status label so hidden overlays no longer steal clicks from the visible Settle text or the row.Reviewed by Cursor Bugbot for commit ac4716b. Bugbot is set up for automated code reviews on this repo. Configure here.