diff --git a/crates/story/src/text_story.rs b/crates/story/src/text_story.rs index c0b44824..e7c9155f 100644 --- a/crates/story/src/text_story.rs +++ b/crates/story/src/text_story.rs @@ -238,6 +238,7 @@ impl Render for TextStory { .child(Kbd::new(Keystroke::parse("cmd-ctrl-t").unwrap())) .child(Kbd::new(Keystroke::parse("escape").unwrap())) .child(Kbd::new(Keystroke::parse("backspace").unwrap())) + .child(Kbd::new(Keystroke::parse("/").unwrap())) .child(Kbd::new(Keystroke::parse("enter").unwrap())), ), ) diff --git a/crates/ui/src/kbd.rs b/crates/ui/src/kbd.rs index ab8133a6..407f13e0 100644 --- a/crates/ui/src/kbd.rs +++ b/crates/ui/src/kbd.rs @@ -60,7 +60,9 @@ impl RenderOnce for Kbd { .bg(cx.theme().background) .py_0p5() .px_1() - .rounded_md() + .min_w_5() + .text_center() + .rounded_sm() .line_height(relative(1.)) .text_xs() .child(Self::format(&self.stroke))