Repository navigation
fix(app): render the terminal menu above the status bar - #49
Merged
Merged
Conversation
.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-areausesisolation: isolate, so the menu'sz-index: 800only 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.bodythrough a smallportalaction (utils/portal.ts), outside the isolated context.TabMenuandProfileMenulive in the title bar, outside that context, so they are not affected.How you checked it
.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-areais covered by the status bar, a menu onbodyis on top.CI runs only after a merge, so these are checked locally:
cargo fmt --check,cargo clippy -- -D warningsandcargo testpass (95 Rust tests)pnpm turbo check test buildandpnpm version:checkpass (159 Vitest tests)CHANGELOG.mdupdated if behaviour changed