Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add gap between label and keybinding in `Tooltip`
Marshall Bowersdbb501d7eb76
diff --git a/crates/ui2/src/components/tooltip.rs b/crates/ui2/src/components/tooltip.rsindex cc17a610f4b..7c502ac5cb1 100644--- a/crates/ui2/src/components/tooltip.rs+++ b/crates/ui2/src/components/tooltip.rs@@ -84,6 +84,7 @@ impl Render for Tooltip {.px_2().child(h_stack()+ .gap_2().child(self.title.clone()).when_some(self.key_binding.clone(), |this, key_binding| {this.justify_between().child(key_binding)