Repository navigation
Keep the split divider above pane headers - #952
Conversation
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]>
|
🚨 SLOP COP 🚨 · 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. |
|
🚨 SLOP COP 🚨 · 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. |
|
🚨 SLOP COP 🚨 · 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. |
|
🚨 SLOP COP 🚨 · 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. |
|
🚨 SLOP COP 🚨 · 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
left a comment
There was a problem hiding this comment.
🚨 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.
## 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]>
Summary
Stacked (column) splits could not be resized. This restores the divider drag.
Cause
#934 added a pane focus scrim at
z-20and lifted the pane headers toz-[21]so titles and tabs stay above it.SplitDividerstayed atz-[5]. Panes arerelativewith 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 atz-30.Tests
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 onz-[5]and passes onz-[25].pnpm exec turbo run test --filter=@bb/app -- SplitThreadArea— 37 passedpnpm exec turbo run typecheck --filter=@bb/app— clean🤖 Generated with Claude Code