Skip to content

Keep the split divider above pane headers - #952

Merged
SawyerHood merged 1 commit into
mainfrom
bb/fix-stacked-split-resizing-thr_xaq35fg6gj
Aug 3, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/fix-stacked-split-resizing-thr_xaq35fg6gj

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

Stacked (column) splits could not be resized. This restores the divider drag.

Cause

#934 added a pane focus scrim at z-20 and lifted the pane headers to z-[21] so titles and tabs stay above it. SplitDivider stayed at z-[5]. Panes are relative with no z-index, so they open no stacking context and the headers paint over the divider.

The divider is a 1px line with a ±6px absolutely positioned grab target. In a column split, the lower pane's header starts exactly at the seam, so it covers that grab strip and takes all the pointer events. Row splits kept working because the header overlaps the seam for only one header row.

Fix

The divider now uses z-[25] — above the scrim and the headers, below a maximized pane at z-30.

Tests

  • New regression test in SplitThreadArea.test.tsx: it renders a column split and asserts the divider layer beats the lower pane's real header and the focus scrim. It fails on z-[5] and passes on z-[25].
  • pnpm exec turbo run test --filter=@bb/app -- SplitThreadArea — 37 passed
  • pnpm exec turbo run typecheck --filter=@bb/app — clean
  • ESLint and Prettier — clean
  • Manual check in the dev app: stacked and side-by-side splits both resize.

🤖 Generated with Claude Code

Stacked (column) splits stopped resizing. The pane focus scrim work put
the pane headers on z-[21], but SplitDivider stayed on z-[5]. Panes are
`relative` with no z-index, so they open no stacking context and the
lower pane's header paints over the divider's grab target, which sits
exactly at the seam.

Raise the divider to z-[25], above the scrim and the headers and below a
maximized pane. Add a regression test over a column split.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

I am SlopCop. I started the security, quality, performance, architecture, and end-to-end review phases.

I will review this pull request under the stated rule.

@SawyerHood
SawyerHood merged commit 003d1aa into main Aug 3, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/fix-stacked-split-resizing-thr_xaq35fg6gj branch August 3, 2026 21:17
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

The end-to-end phase is complete.

I opened two thread panes and moved the second pane below the first.

The seam hit the divider above the lower header.

A drag changed pane heights from 359.5 pixels each to 299.08 and 419.92 pixels.

The focused test and the app type check also passed.

@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

The quality and architecture phase is complete.

The test covers the real lower new-thread header that caused this fault.

The layer values also preserve the scrim at 20, headers at 21, divider at 25, and maximized pane at 30.

The scan found two intentional header layer sites and no new duplicate implementation.

I found no quality or architecture issue.

@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

The security phase is complete.

The exact diff adds no input, data flow, browser action, access control, or unsafe document operation.

I found no security or privacy issue.

@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

The performance phase is complete.

The change only changes paint order.

It adds no render work, layout read, event listener, memory state, or large test cost.

I found no performance issue.

@SawyerHood SawyerHood left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

No blocking or non-blocking findings remain.

Security review found no input, access, document, data, or privacy risk.

Quality review confirmed the correct layer order: scrim 20, headers 21, divider 25, and maximized pane 30.

The architecture scan found no new duplicate code and no useful refactor for this small change.

Performance review confirmed that the patch only changes paint order.

The focused test passed all 30 cases.

The app type check passed.

The browser test confirmed seam ownership and actual vertical resize behavior.

All GitHub checks passed.

The final GPT-5.6 review gate returned APPROVE.

amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## Summary

Stacked (column) splits could not be resized. This restores the divider
drag.

## Cause


[get-bb#934](get-bb@dbdcc20)
added a pane focus scrim at `z-20` and lifted the pane headers to
`z-[21]` so titles and tabs stay above it. `SplitDivider` stayed at
`z-[5]`. Panes are `relative` with no z-index, so they open no stacking
context and the headers paint over the divider.

The divider is a 1px line with a ±6px absolutely positioned grab target.
In a column split, the lower pane's header starts exactly at the seam,
so it covers that grab strip and takes all the pointer events. Row
splits kept working because the header overlaps the seam for only one
header row.

## Fix

The divider now uses `z-[25]` — above the scrim and the headers, below a
maximized pane at `z-30`.

## Tests

- New regression test in `SplitThreadArea.test.tsx`: it renders a column
split and asserts the divider layer beats the lower pane's real header
and the focus scrim. It fails on `z-[5]` and passes on `z-[25]`.
- `pnpm exec turbo run test --filter=@bb/app -- SplitThreadArea` — 37
passed
- `pnpm exec turbo run typecheck --filter=@bb/app` — clean
- ESLint and Prettier — clean
- Manual check in the dev app: stacked and side-by-side splits both
resize.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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