From 45b7450b5c130cca144be12c5e0a533c315f5370 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 4 Oct 2024 09:40:56 +0800 Subject: [PATCH] story: Fix modal story button style. (#306) image Fix #305 --- crates/story/src/modal_story.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/story/src/modal_story.rs b/crates/story/src/modal_story.rs index a5205c64..fe5982f6 100644 --- a/crates/story/src/modal_story.rs +++ b/crates/story/src/modal_story.rs @@ -458,7 +458,8 @@ impl Render for ModalStory { .child(self.input2.clone()) .child( Button::new("test-action") - .label("Test Dispatch Action") + .label("Test Action") + .flex_shrink_0() .on_click(|_, cx| { cx.dispatch_action(Box::new(TestAction)); }).tooltip("This button for test dispatch action, to make sure when Modal close,\nthis still can handle the action."), @@ -468,6 +469,7 @@ impl Render for ModalStory { h_flex() .items_start() .gap_3() + .flex_wrap() .child( Button::new("show-drawer-left") .label("Left Drawer...") @@ -514,6 +516,7 @@ impl Render for ModalStory { .child( h_flex() .gap_3() + .flex_wrap() .child( Button::new("show-notify-info") .label("Info Notify...")