Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
This fixes the bug. I ran the reproduction from #67045 from source on the base and on this branch. On the base, the session column's timeline text draws over the compact rail's hover card. With this change, the card paints fully above the column (screenshots below). OpenTUI does sort zIndex only among siblings, and the session column has no zIndex, so zIndex={1} on the rail is enough. The resize handle (zIndex={10}) still sits above the rail. The rail tests pass, the new test fails on the base, and tsc -b passes.
Public API: unchanged.
The new test and the code comment aren't needed for a one-line fix. Both can be dropped to keep the change minimal.
This branch has not been deployed
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.


Issue for this PR
Closes #67045
Type of change
What does this PR do?
The compact tab rail's hover card painted behind the session column. OpenTUI orders
zIndexonly among siblings, and the card lived inside the rail, the first sibling, while the session column was the second.The rail root now gets its own
zIndex, so its subtree, including the tooltip, paints above the column next to it.How did you verify your code works?
New test
compact rail keeps its hover card above the session columninpackages/tui/test/component/session-tabs-rail.test.tsxrenders the rail next to a sibling column, hovers a tab, and waits for the title in the captured frame. It fails with the oldzIndexand passes with this change.bun testfor the file andbun run typecheckinpackages/tui.Checklist