Skip to content

fix(tabs): give a maximized tab only the strip above it - #827

Merged
PathGao merged 1 commit into
masterfrom
fix/tab-hit-area-top-only
Sep 22, 2026
Merged

PathGao merged 1 commit into
masterfrom
fix/tab-hit-area-top-only

Conversation

@PathGao

@PathGao PathGao commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #826 (#823).

#826 stretched each tab's wrapper to the full 36px bar height, so the 4px strip below a tab also started picking the tab. Only the top strip is the screen edge #823 is about. The bottom strip is mid-screen. Converting it gained nothing and took away a place to grab the maximized window, for example to drag it down to restore or snap it.

The maximized wrapper now uses align-self: flex-start with padding-top: 4px. It spans from the screen edge to the tab's bottom, and the tab stays where it was.

Measured in the dev frontend under a Tauri stub reporting Windows, by hit-testing elementFromPoint down the bar:

  • Maximized: y 0–3 is the wrapper, and a click at y=1 selects the tab. y 4–31 is the tab. y 32–35 is the drag-region container again.
  • Restored: the wrapper matches the tab (4–32), and y=1 is drag region, same as before.

npm test 1034 pass, vitest 445 pass, npm run check 0 errors. Not run on real Windows or Linux.

#826 stretched each tab's wrapper over the full bar height, so both the
strip above the tab and the one below it picked the tab. Only the top
strip is the screen edge #823 was about. The bottom strip is mid-screen,
gained nothing from the change, and lost its use as a place to grab the
maximized window.

The wrapper now reaches from the screen edge down to the tab's bottom,
and the strip below the tab is drag region again.
@PathGao
PathGao merged commit 359a3ba into master Sep 22, 2026
4 checks passed
@PathGao
PathGao deleted the fix/tab-hit-area-top-only branch September 24, 2026 23:47
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