Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ui: Fix switch field info tooltip (#35882)
Danilo Leal530f5075d0c1
diff --git a/crates/ui/src/components/toggle.rs b/crates/ui/src/components/toggle.rsindex 4b985fd2c25..59c056859de 100644--- a/crates/ui/src/components/toggle.rs+++ b/crates/ui/src/components/toggle.rs@@ -659,10 +659,12 @@ impl RenderOnce for SwitchField {.icon_size(IconSize::XSmall).icon_color(Color::Muted).shape(crate::IconButtonShape::Square)+ .style(ButtonStyle::Transparent).tooltip({let tooltip = tooltip_fn.clone();move |window, cx| tooltip(window, cx)- }),+ })+ .on_click(|_, _, _| {}), // Intentional empty on click handler so that clicking on the info tooltip icon doesn't trigger the switch toggle)});