Skip to content

Refine focused split pane styling - #682

Merged
SawyerHood merged 1 commit into
mainfrom
bb/remove-split-highlight-thr_dmaygedazu
Jul 14, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/remove-split-highlight-thr_dmaygedazu

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

  • remove the focused pane outline from split layouts
  • strengthen inactive-pane dimming and raise the focused pane header
  • mark the focused thread title with a layout-stable selected-state pill

Validation

  • pnpm exec turbo run test --filter=@bb/app --force -- src/views/thread-detail/SplitThreadArea.test.tsx
  • pnpm exec turbo run typecheck --filter=@bb/app
  • pnpm 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
  • manual QA on managed dev server

@SawyerHood
SawyerHood merged commit 4422445 into main Jul 14, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/remove-split-highlight-thr_dmaygedazu branch July 14, 2026 19:04
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]>
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