warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.53k stars 376 forks source link

Tab suggestions tooltip gets cut off near edge of viewport #5497

Open petekp opened 1 week ago

petekp commented 1 week ago

Dupe Check

Describe the bug

When the Tab Suggestions popover is near the right edge of the viewport, the tooltip gets cut off.

To reproduce

  1. Trigger the Tab Suggestions popover
  2. Select multiple suggested completions, e.g. git add multiple files
  3. Notice that the tooltip shows the full path of the highlighted suggestion
  4. Continue appending files until the Tab Suggestion popover reaches the right-edge of the viewport
  5. The tooltip showing the full path of the highlighted suggestion is no longer visible

Expected behavior

The tooltip should have spatial/boundary context and reposition itself on the opposite side of the Tab Suggestions popover to avoid being cut off by any of the edges (top, left, bottom, right).

Screenshots

image

Operating system

MacOS

Operating system and version

15.1.0

Shell Version

zsh 5.9 (arm64-apple-darwin24.0)

Current Warp version

v0.2024.11.12.08.02.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

Ignore