Repository navigation
Refine focused split pane styling - #682
Merged
Merged
Conversation
ymichael
added a commit
that referenced
this pull request
Sep 15, 2026
## Root cause The focused pane title chip cancels its own horizontal padding with `-mx-2` so the grey surface bleeds outward without shifting the title text. The header's center row separates its children with `gap-2` (`apps/app/src/components/layout/AppPageHeader.tsx:90`) — exactly the 8px that the right-side bleed removes. The chip's painted right edge therefore landed at 0px from the next sibling: the `child` / `side chat` pill, or the actions menu button's hover box when no pill is present. Measured in the running app before the fix: `chipRight: 1028, pillLeft: 1028`. This is not a recent regression. The focused-pane title surface arrived in 4422445 (#682, 2026-07-14) as an absolutely-positioned overlay with `-inset-x-2`, which produced the same flush edge; dbdcc20 (#934, 2026-08-01) rewrote the technique to padding plus negative margin and faithfully reproduced the same offsets. The pill (#85) and the row's `gap-2` both predate the surface, so the collision existed from the surface's first commit. It stayed unnoticed because the surface only paints on the *focused* pane, only in a split, and is only visibly flush when the thread carries a `child` / `side chat` pill — without a pill the neighbour is the actions button, which is transparent until hover. ## Change Keep the left bleed, which is load-bearing (it aligns the title text with the header's `px-4`), and drop the right bleed so the row gap survives. Applied to both headers that share the chip pattern: - `apps/app/src/views/thread-detail/ThreadDetailHeader.tsx:164` - `apps/app/src/views/thread-detail/SplitThreadArea.tsx:1134` ## Verification Drove a real dev instance with a parent thread, a child thread (so the `child` pill renders), and a new-thread pane, arranged as three split panes, and measured the live DOM: | | chip `margin-right` | gap to next sibling | | --- | --- | --- | | before | `-8px` | **0px** | | after | `0px` | **8px** | All three pane-header variants (thread, child-pill thread, new-thread pane) report `margin-right: 0px` and an 8px gap after the change, with the title text position unchanged (`margin-left` stays `-8px`). Checks: `pnpm exec turbo run typecheck lint test --filter='...[origin/main]'` — 533 test files, 4675 passed / 3 skipped, 0 lint errors, exit 0. > AGENT GENERATED Co-authored-by: Claude Opus 5 (1M context) <[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.
Summary
Validation
pnpm exec turbo run test --filter=@bb/app --force -- src/views/thread-detail/SplitThreadArea.test.tsxpnpm exec turbo run typecheck --filter=@bb/apppnpm exec turbo run lint --filter=@bb/app(passes with existing warnings)pnpm exec prettier --check apps/app/src/views/thread-detail/SplitThreadArea.tsx apps/app/src/views/thread-detail/ThreadDetailHeader.tsx