@ context menu fixes. (#9237)

## Description
<!-- Please remember to add your design buddy onto the PR for review, if
it contains any UI changes! -->

WISOTT! Fixes:
- positioning of the menu in the new cloud mode input
- some sharp corners poking through rounded ones for the selected item

<img width="588" height="312" alt="Screenshot 2026-04-27 at 9 01 19 PM"
src="https://github.com/user-attachments/assets/03cd565a-e869-4a3a-9ae3-98dd3d86c068"
/>


## Testing
<!--
How did you test this change? What automated tests did you add? If you
didn't add any new tests, what's your justification for not adding any?

If you're not sure whether you should add a test, check our testing
policy:
https://www.notion.so/warpdev/How-We-Code-at-Warp-257fe43d556e4b3c8dfd42f70004cc72#1f97825450504baa9c5fd87a737daa09
-->

See image!

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
This commit is contained in:
Abhishek Pandya
2026-04-28 21:15:13 +00:00
committed by GitHub
parent 84592e2ad8
commit e3470ae088
4 changed files with 22 additions and 3 deletions
+7 -1
View File
@@ -3429,6 +3429,12 @@ impl Input {
if let Some(ai_context_menu) = self.editor.as_ref(app).render_ai_context_menu() {
let position = position_id_for_cursor(self.editor.id());
let y_anchor = if self.is_cloud_mode_input_v2_composing(app) {
AnchorPair::new(YAxisAnchor::Bottom, YAxisAnchor::Top)
} else {
menu_positioning.completion_suggestions_y_anchor()
};
stack.add_positioned_overlay_child(
ai_context_menu,
OffsetPositioning::from_axes(
@@ -3442,7 +3448,7 @@ impl Input {
&position,
PositionedElementOffsetBounds::Unbounded,
OffsetType::Pixel(0.),
menu_positioning.completion_suggestions_y_anchor(),
y_anchor,
),
),
);
+1 -1
View File
@@ -333,7 +333,7 @@ impl Input {
let menu_positioning = self.menu_positioning(app);
let model = self.model.lock();
let mut stack = Stack::new().with_constrain_absolute_children();
let mut stack = Stack::new();
// Apply the V2 gutter symmetrically (left + right) so the floating
// input keeps equal breathing room on both sides as the pane shrinks.