Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ui: Use hoverable tooltips for Badge component to fix tooltip behavior (#38387)
Devdatta Talele0a9023bce09d
diff --git a/crates/ui/src/components/badge.rs b/crates/ui/src/components/badge.rsindex f36e03291c5..9db6fd616f5 100644--- a/crates/ui/src/components/badge.rs+++ b/crates/ui/src/components/badge.rs@@ -58,7 +58,7 @@ impl RenderOnce for Badge {.child(Divider::vertical().color(DividerColor::Border)).child(Label::new(self.label.clone()).size(LabelSize::Small).ml_1()).when_some(tooltip, |this, tooltip| {- this.tooltip(move |window, cx| tooltip(window, cx))+ this.hoverable_tooltip(move |window, cx| tooltip(window, cx))})}}