From c5fed17941be934e8eb04f5cd960a031677aa502 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Wed, 18 Jun 2025 14:21:25 +0800 Subject: [PATCH] notification: Better style details (#982) | Before | After | | - | - | | Before | After | --- crates/story/src/notification_story.rs | 2 +- crates/ui/src/notification.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/story/src/notification_story.rs b/crates/story/src/notification_story.rs index c92d98ea..5a2fa8f5 100644 --- a/crates/story/src/notification_story.rs +++ b/crates/story/src/notification_story.rs @@ -189,7 +189,7 @@ impl Render for NotificationStory { window.push_notification( Notification::new() .id::() - .message("Click the Close Notification button to close.") + .message("You can close this notification by clicking the Close button.") .autohide(false), cx, ); diff --git a/crates/ui/src/notification.rs b/crates/ui/src/notification.rs index bd812279..565fb8df 100644 --- a/crates/ui/src/notification.rs +++ b/crates/ui/src/notification.rs @@ -270,9 +270,9 @@ impl Render for Notification { .border_1() .border_color(cx.theme().border) .bg(cx.theme().popover) - .rounded(cx.theme().radius) + .rounded(cx.theme().radius * 1.5) .shadow_md() - .py_2() + .py_3p5() .px_4() .gap_3() .when_some(icon, |this, icon| {