Skip to content

fix(web): sheet-mode panel puts its close button at the edge - #262

Merged
badcuban merged 1 commit into
mainfrom
threadlines/fix-narrow-panel-close-button
Sep 9, 2026
Merged

fix(web): sheet-mode panel puts its close button at the edge#262
badcuban merged 1 commit into
mainfrom
threadlines/fix-narrow-panel-close-button

Conversation

@badcuban

@badcuban badcuban commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

At narrow desktop widths the right panel opens as a sheet below the chat header. Its close button showed up in the middle of the header row and did not respond to clicks at first.

The tab strip always reserved space for the Windows window-controls cluster and always acted as a window drag region, which is right for the inline layout where the strip sits in the title bar. The sheet never shares that row. The strip now takes an overlay flag, set by ChatRightPanel whenever the sheet's dismiss handler is present, and in that mode skips both the clearance and the drag region.

No new test: a headless browser has no window-controls overlay, so a test could not tell the old code from the new. Strip browser tests, format, lint, and typecheck pass.

At narrow widths the right panel opens as a sheet below the chat header,
but its tab strip still reserved room for the Windows window-controls
cluster and acted as a window drag region. The close button landed in the
middle of the row and did not take clicks until the drag region was
recomputed.

The strip now takes an `overlay` flag from ChatRightPanel (present exactly
when the sheet's dismiss handler is), and in that mode drops both the
window-controls clearance and the drag region. The inline layout is
unchanged.
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Sep 9, 2026 7:52pm UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Sep 9, 2026
@badcuban
badcuban enabled auto-merge September 9, 2026 19:55
@badcuban
badcuban disabled auto-merge September 9, 2026 19:59
@badcuban
badcuban enabled auto-merge September 9, 2026 19:59
@badcuban
badcuban added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit a40c4f0 Sep 9, 2026
16 checks passed
@badcuban
badcuban deleted the threadlines/fix-narrow-panel-close-button branch September 9, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant