Fix missing arrows

This commit is contained in:
Nate Butler 2023-11-28 15:15:49 -05:00
parent 21755c7d20
commit 525fe70de6
2 changed files with 2 additions and 5 deletions

View file

@ -79,10 +79,7 @@ impl Render for CommandPalette {
type Element = Div; type Element = Div;
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Element { fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Element {
v_stack() v_stack().min_w_96().child(self.picker.clone())
.min_w_96()
.max_w(rems(36.))
.child(self.picker.clone())
} }
} }

View file

@ -39,7 +39,7 @@ impl RenderOnce for KeyBinding {
.when(keystroke.modifiers.shift, |el| { .when(keystroke.modifiers.shift, |el| {
el.child(KeyIcon::new(Icon::Shift)) 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| { .when(key_icon.is_none(), |el| {
el.child(Key::new(keystroke.key.to_uppercase().clone())) el.child(Key::new(keystroke.key.to_uppercase().clone()))
}) })