Skip to content

Fix compact Info panel overlap - #4820

Merged
ymichael merged 1 commit into
mainfrom
bb/investigate-and-fix-broken-issue-thr_m7bzvu7pby
Oct 5, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/investigate-and-fix-broken-issue-thr_m7bzvu7pby

Conversation

@ymichael

@ymichael ymichael commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

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.5 plus max-md:gap-0 to 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 explicit min-height replaces 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

ThreadMetadataCard in apps/app/src/components/secondary-panel/ThreadMetadataContent.tsx drops 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/app passed on cad9d7c (569 test files passed, 2 skipped).
  • Ladle with a temporary story (not committed) rendering ThreadMetadataContent with 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.
Case Base db9777f Head cad9d7c
7 commits, 10 files, storage, 640px panel Commits and Committed clipped, overlapping; divider 40px; panel 640/652 No overlap or clipping; panel scrolls 640/761
Same, click "Show 2 more" Click lands on the overlapping section; list stays collapsed Expands to 7 commits and "Show less"; panel scrolls 640/813
3 commits, 3 files, storage, 520px panel Clipped and overlapping; panel cannot scroll (520/520) No overlap; scrolls 520/605
2 commits, 2 files, everything fits Info rows 40px vs commit rows 26px; divider 40px Info 30px, commit 26px, divider 1px
No commits, files, storage or PR Info rows 40px Info rows 30px, nothing clipped
Desktop width Info 30px, commit 26px, panel 760/777 Identical

No regression test: this is flex layout, which jsdom does not compute.

AGENT GENERATED

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
ymichael merged commit 83b5ee3 into main Oct 5, 2026
34 checks passed
@ymichael
ymichael deleted the bb/investigate-and-fix-broken-issue-thr_m7bzvu7pby branch October 5, 2026 16:50
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