Skip to content

Fix terminal tab tooltip covering tabs when in limited space #246659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

GenericallyNamed
Copy link

Addresses #239404

This PR resolves an issue noted when dealing with multiple terminal tabs in a narrow viewport where the hover tooltip would cover the tabs themselves by adding forcePosition: true in vs/workbench/contrib/terminal/browser/terminalTabsList.ts. This fix also maintains the behavior of #221590.

Reproduction steps before fix:

  1. Open multiple tabs in a terminal
  2. Optionally click "Show Details" on the tooltip to see the larger tooltip, which is most likely when the user would notice this issue
  3. Reduce viewport width, notice tooltip is now covering tabs.

Reproductions steps after fix:

  1. Create a similar layout as before
  2. Tooltip is still placed to either left or right as expected but now has a maximum width applied

Tooltip with forcePosition:
image

Location of change: vs/workbench/contrib/terminal/browser/terminalTabsList.ts

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.

2 participants