From dbb501d7eb76e21d25f2694730be2b564895f3ac Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 6 Dec 2023 15:45:03 -0500 Subject: [PATCH] Add gap between label and keybinding in `Tooltip` --- crates/ui2/src/components/tooltip.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui2/src/components/tooltip.rs b/crates/ui2/src/components/tooltip.rs index cc17a610f4..7c502ac5cb 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)