.
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user