Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): stop settle controls overlapping the status label #4574

Mergedipanasenko(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/4574/headmerged by maria-rcks View on GitHub

Problem

Settling a thread that can't be settled leaves a broken-looking row: the status label renders on top of the Snooze/Settle controls.

Repro: click Settle on a newly created working thread.

image

Note

Fix settle controls overlapping the status label in SidebarV2Row

In SidebarV2.tsx, the action buttons and status label visibility now toggle on :focus-visible or hover instead of :focus-within. Previously, clicking a button with a mouse would keep the action buttons pinned visible after the pointer left, because :focus-within fires on any focus. Switching to has-[:focus-visible] restricts the pinned state to keyboard navigation, so mouse clicks no longer cause the controls to overlap the status label.

Macroscope summarized d889541.

Note

Low Risk Tailwind class changes only in SidebarV2 card row hover/focus styling; no API or business logic.

Overview Fixes sidebar card thread rows where Snooze/Settle stayed pinned over the status text after a mouse click (e.g. failed settle on a working thread).

The status slot now uses has-[:focus-visible] instead of focus-within on the action container and matching group-has-[:focus-visible] on the status label, so hover still shows controls but post-click focus does not keep them in the in-flow “hover” layout. Keyboard focus-visible behavior is unchanged.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d88954183f9dfd524cf894599806fa443157baf5. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: b765c082-1589-401d-ab48-fb0ed9f66633

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved d889541

      CSS-only fix that changes focus handling from focus-within to focus-visible to prevent settle controls from overlapping the status label after mouse clicks. Clear intent, limited scope, no runtime logic changes.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. maria-rcks merged this78eb3ec

    5. maria-rcks closed this

Sign in to join this conversation.