Repository navigation
Keep expanded parent thread rows from growing on hover - #8113
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sSidebarChildToggleChevrongets-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: hoveremulated, 288 px sidebar): real thread-list rows from thesidebar/Thread listLadle fixture, with a temporary row-metadata contributor so every row has a second line. Row heights at rest → on hover: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 listLadle stories crash on main.PluginThreadList.stories.tsxcallsinstallTestPluginRuntime(), which replaces the plugin runtime that.ladle/components.tsxalready 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.🤖 Generated with Claude Code