add message tracker
This commit is contained in:
@@ -339,11 +339,12 @@ impl Render for Notification {
|
||||
.when(only_message, |this| this.items_center())
|
||||
.refine_style(&self.style)
|
||||
.when_some(icon, |this, icon| {
|
||||
this.child(div().flex_shrink_0().child(icon))
|
||||
this.child(div().flex_shrink_0().size_5().child(icon))
|
||||
})
|
||||
.child(
|
||||
v_flex()
|
||||
.flex_1()
|
||||
.gap_1()
|
||||
.overflow_hidden()
|
||||
.when_some(self.title.clone(), |this, title| {
|
||||
this.child(h_flex().h_5().text_sm().font_semibold().child(title))
|
||||
@@ -352,9 +353,7 @@ impl Render for Notification {
|
||||
this.child(
|
||||
div()
|
||||
.text_sm()
|
||||
.when(has_title, |this| {
|
||||
this.mt_2().text_color(cx.theme().text_muted)
|
||||
})
|
||||
.when(has_title, |this| this.text_color(cx.theme().text_muted))
|
||||
.line_height(relative(1.3))
|
||||
.child(message),
|
||||
)
|
||||
@@ -363,7 +362,6 @@ impl Render for Notification {
|
||||
.when_some(action, |this, action| {
|
||||
this.child(
|
||||
h_flex()
|
||||
.mt_2()
|
||||
.w_full()
|
||||
.flex_1()
|
||||
.gap_1()
|
||||
|
||||
Reference in New Issue
Block a user