Repository navigation
Fix compact Info panel overlap - #4820
Merged
Merged
Conversation
The phone layout from #4470 set min-h-10 on every direct child of the Info list. An explicit min-height replaces flex's content-based minimum, so when the panel overflowed, Commits, changed files, and Thread storage shrank to 40px and their content spilled over the next section. The divider also grew to 40px, and the 40px label/value rows no longer matched the 26px commit and file rows below them. Drop the phone row-height rule and gap override so the rows use the desktop rhythm. The wider label column and tighter panel padding stay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/investigate-and-fix-broken-issue-thr_m7bzvu7pby
branch
October 5, 2026 16:50
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
On phones the thread Info tab's sections overlapped: commit rows ran into "Committed", changed files into "Thread storage", and "Show N more" became unclickable under the next section. #4470 (5559414) added
max-md:[&>div]:min-h-10 max-md:[&>div:not(.items-center)]:pt-2.5plusmax-md:gap-0to the Info list so label/value rows would be 40px. The selector matched every direct child, including the divider and the vertical Commits, changed-files and Thread storage sections. An explicitmin-heightreplaces a flex item's content-based minimum, so when the panel overflowed, flex shrink squeezed each section to 40px and its content spilled into the next. It also stretched the 1px divider to 40px, and the 40px label/value rows no longer matched the 26px commit and file rows below them.What changed
ThreadMetadataCardinapps/app/src/components/secondary-panel/ThreadMetadataContent.tsxdrops the phone row-height rule and the phone gap override, so rows use the desktop rhythm on phones too. That means 30px label/value rows and 26px commit and file rows, and the panel scrolls when content overflows. #4470's wider phone label column (7.5rem) and tighter panel padding stay. Desktop classes are unchanged. Frontend-only, one class string.How you verified
pnpm exec turbo run typecheck lint test --filter=@bb/apppassed on cad9d7c (569 test files passed, 2 skipped).ThreadMetadataContentwith fixture data, base db9777f vs head cad9d7c. Phone cases used a 393px viewport (max-md, fine pointer); desktop used a 1280px viewport with a 360px panel.No regression test: this is flex layout, which jsdom does not compute.