Skip to content

Keep expanded parent thread rows from growing on hover - #8113

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-hover-state-issue-thr_8vj98arrie
Nov 24, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-hover-state-issue-thr_8vj98arrie

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Hovering an expanded parent thread row in the sidebar made the row 4 px taller and pushed every row below it down. #8056 takes an expanded parent's hidden disclosure chevron out of the layout at rest and puts it back on hover. The chevron button is 20 px tall (size-5), but in a row with a metadata line (for example a PR badge) the title line is only 16 px (leading-4). When the chevron came back on hover it set the title line to 20 px. #8056 measured only one-line 28 px rows, which have spare height, so this did not show there. For the same reason, collapsed parents with a metadata line were 4 px taller than leaf rows all the time.

What changed

plugins/thread-list/app/rows/ThreadRow.tsx: the thread row's SidebarChildToggleChevron gets -my-0.5, so its 20 px box takes 16 px of line height. The button, its hover background and its touch hit area keep the same size. Expanded parents keep their height on hover, and collapsed parents with metadata are now the same height as leaf rows. One-line rows do not change, because the chevron was already shorter than the row.

No wire, SDK, CLI or setting change.

How you verified

  • Chromium (hover: hover emulated, 288 px sidebar): real thread-list rows from the sidebar/Thread list Ladle fixture, with a temporary row-metadata contributor so every row has a second line. Row heights at rest → on hover:

    Row main This PR
    Expanded parent 43 → 47 px 43 → 43 px
    Collapsed parent 47 → 47 px 43 → 43 px
    Leaf 43 → 43 px 43 → 43 px

    A screenshot of a hovered expanded parent shows the chevron, Archive and menu buttons lined up with the rows around it.

  • pnpm exec turbo run typecheck test lint --filter=bb-plugin-thread-list: passes, 460/460 tests.

  • Not checked: WebKit, packaged desktop app.

Separately, the sidebar/Thread list Ladle stories crash on main. PluginThreadList.stories.tsx calls installTestPluginRuntime(), which replaces the plugin runtime that .ladle/components.tsx already installs. Its slot then throws "useBbContext() needs the test slot environment". For the measurements I removed that call in a local copy; this PR does not change the story.

AGENT GENERATED

🤖 Generated with Claude Code

An expanded parent's disclosure chevron leaves the layout at rest and
returns on hover (#8056). Its 20px box is taller than the 16px title
line of a row with a metadata line, so hovering grew the row by 4px and
pushed the rows below down. A -my-0.5 margin keeps the chevron from
adding height, so expanded and collapsed parents match leaf rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 77e9ced into main Nov 24, 2026
47 checks passed
@ymichael
ymichael deleted the bb/fix-hover-state-issue-thr_8vj98arrie branch November 24, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant