Skip to content

fix(app): render the terminal menu above the status bar - #49

Merged
arifintahu merged 1 commit into
mainfrom
fix/menu-under-statusbar
Nov 16, 2026
Merged

arifintahu merged 1 commit into
mainfrom
fix/menu-under-statusbar

Conversation

@arifintahu

Copy link
Copy Markdown
Member

What and why

Right-clicking near the bottom of a terminal still showed a cropped menu after #45: the last items ("Find…") were hidden behind the status bar.

.terminal-area uses isolation: isolate, so the menu's z-index: 800 only applied inside that stacking context. The status bar (z-index: 100) is a sibling outside it and painted over the menu. #45 kept the menu inside the viewport, which did not help because the menu still overlapped the status bar.

The menu now moves to document.body through a small portal action (utils/portal.ts), outside the isolated context. TabMenu and ProfileMenu live in the title bar, outside that context, so they are not affected.

How you checked it

  • Rebuilt the .app / .terminal-area (isolated) / status bar structure with the real CSS values in the browser pane and hit-tested a menu over the status bar: a menu inside .terminal-area is covered by the status bar, a menu on body is on top.
  • Not yet tried in the running Tauri app (the frontend does not mount outside Tauri).
  • No unit test: jsdom does not model stacking contexts, so a test would not have failed before the fix.

CI runs only after a merge, so these are checked locally:

  • cargo fmt --check, cargo clippy -- -D warnings and cargo test pass (95 Rust tests)
  • pnpm turbo check test build and pnpm version:check pass (159 Vitest tests)
  • Bug fixes have a test that failed before the fix (see above: not testable in jsdom)
  • No secrets, personal paths or machine names in the diff
  • Docs and CHANGELOG.md updated if behaviour changed

.terminal-area is an isolated stacking context, so the menu's z-index
only applied inside it and the status bar (a sibling) painted over the
menu's bottom items. Move the menu to document.body with a portal action.
@arifintahu arifintahu self-assigned this Nov 16, 2026
@arifintahu
arifintahu merged commit 23062cb into main Nov 16, 2026
4 checks passed
@arifintahu
arifintahu deleted the fix/menu-under-statusbar branch November 16, 2026 00:56
@arifintahu arifintahu mentioned this pull request Nov 17, 2026
5 tasks done
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