This commit is contained in:
2026-03-14 09:10:23 +07:00
parent fec148dcb5
commit 0fc7d2f6d1
5 changed files with 59 additions and 16 deletions

View File

@@ -330,7 +330,12 @@ impl Render for Notification {
.items_start()
.refine_style(&self.style)
.when_some(icon, |this, icon| {
this.child(div().flex_shrink_0().child(icon))
this.child(
div()
.flex_shrink_0()
.when(self.message.is_some(), |this| this.pt_0p5())
.child(icon),
)
})
.child(
v_flex()
@@ -340,7 +345,13 @@ impl Render for Notification {
this.child(div().text_sm().font_semibold().child(title))
})
.when_some(self.message.clone(), |this, message| {
this.child(div().text_sm().line_height(relative(1.25)).child(message))
this.child(
div()
.text_sm()
.text_color(cx.theme().text_muted)
.line_height(relative(1.3))
.child(message),
)
})
.when_some(content, |this, content| this.child(content))
.when_some(action, |this, action| {