Skip to content

fix(tui): paint the compact tab hover card above the session column - #67114

Open
Kiko0301 wants to merge 1 commit into
anomalyco:devfrom
Kiko0301:fix-tooltip-layer
Open

Kiko0301 wants to merge 1 commit into
anomalyco:devfrom
Kiko0301:fix-tooltip-layer

Conversation

@Kiko0301

Copy link
Copy Markdown

Issue for this PR

Closes #67045

Type of change

  • Bug fix

What does this PR do?

The compact tab rail's hover card painted behind the session column. OpenTUI orders zIndex only 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 column in packages/tui/test/component/session-tabs-rail.test.tsx renders the rail next to a sibling column, hovers a tab, and waits for the title in the captured frame. It fails with the old zIndex and passes with this change. bun test for the file and bun run typecheck in packages/tui.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Before

After

This branch has not been deployed

No deployments
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.

TUI: compact tab rail hover card renders behind the session column

1 participant