From fdeb46b293945ef974811feb1003043e753ab933 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 20 Jun 2025 18:16:35 +0800 Subject: [PATCH] modal: Update modal inner padding from p_4 to p_6. --- crates/ui/src/modal.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ui/src/modal.rs b/crates/ui/src/modal.rs index 6835e86c..7387609d 100644 --- a/crates/ui/src/modal.rs +++ b/crates/ui/src/modal.rs @@ -355,8 +355,8 @@ impl RenderOnce for Modal { let x = bounds.center().x - self.width / 2.; let border_radius = (cx.theme().radius * 2.).min(px(20.)); - let mut padding_right = px(16.); - let mut padding_left = px(16.); + let mut padding_right = px(24.); + let mut padding_left = px(24.); if let Some(pl) = self.style.padding.left { padding_left = pl.to_pixels(self.width.into(), window.rem_size()); } @@ -400,7 +400,7 @@ impl RenderOnce for Modal { .rounded(border_radius) .shadow_xl() .min_h_24() - .py_4() + .py_6() .gap_4() .refine_style(&self.style) .px_0() @@ -458,8 +458,8 @@ impl RenderOnce for Modal { this.child( Button::new("close") .absolute() - .top_2() - .right_2() + .top_4() + .right_4() .small() .ghost() .icon(IconName::Close)