Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix hover element on ACP thread mode selector (#38204)
Alvaro Parker3dbccc828e45
diff --git a/crates/agent_ui/src/acp/mode_selector.rs b/crates/agent_ui/src/acp/mode_selector.rsindex d4d424f41a3..41087412666 100644--- a/crates/agent_ui/src/acp/mode_selector.rs+++ b/crates/agent_ui/src/acp/mode_selector.rs@@ -107,13 +107,15 @@ impl ModeSelector {.text_sm().text_color(Color::Muted.color(cx)).child("Hold")- .child(div().pt_0p5().children(ui::render_modifiers(- &gpui::Modifiers::secondary_key(),- PlatformStyle::platform(),- None,- Some(ui::TextSize::Default.rems(cx).into()),- true,- )))+ .child(h_flex().flex_shrink_0().children(+ ui::render_modifiers(+ &gpui::Modifiers::secondary_key(),+ PlatformStyle::platform(),+ None,+ Some(ui::TextSize::Default.rems(cx).into()),+ true,+ ),+ )).child(div().map(|this| {if is_default {this.child("to also unset as default")