From 525fe70de6b62e6dcd11f06300c1dfe37623ff3c Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 28 Nov 2023 15:15:49 -0500 Subject: [PATCH] Fix missing arrows --- crates/command_palette2/src/command_palette.rs | 5 +---- crates/ui2/src/components/keybinding.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/command_palette2/src/command_palette.rs b/crates/command_palette2/src/command_palette.rs index 048749a02d9b448178e196fa229e8b08a481615a..6a11f3f7ea0bd21dc4bd671bff3eb758083b71b2 100644 --- a/crates/command_palette2/src/command_palette.rs +++ b/crates/command_palette2/src/command_palette.rs @@ -79,10 +79,7 @@ impl Render for CommandPalette { type Element = Div; fn render(&mut self, _cx: &mut ViewContext) -> Self::Element { - v_stack() - .min_w_96() - .max_w(rems(36.)) - .child(self.picker.clone()) + v_stack().min_w_96().child(self.picker.clone()) } } diff --git a/crates/ui2/src/components/keybinding.rs b/crates/ui2/src/components/keybinding.rs index 15e365e5264dc0d9eac57971f05929b36f6c2a42..4bf98a9466de334572bab793a788ec430652bbc7 100644 --- a/crates/ui2/src/components/keybinding.rs +++ b/crates/ui2/src/components/keybinding.rs @@ -39,7 +39,7 @@ impl RenderOnce for KeyBinding { .when(keystroke.modifiers.shift, |el| { el.child(KeyIcon::new(Icon::Shift)) }) - // .when_some(key_icon, |el, icon| el.child(KeyIcon::new(icon))) + .when_some(key_icon, |el, icon| el.child(KeyIcon::new(icon))) .when(key_icon.is_none(), |el| { el.child(Key::new(keystroke.key.to_uppercase().clone())) })