feat: add contact-based chat creation and re-add chat screening #54
+13
-6
@@ -401,20 +401,25 @@ impl RenderOnce for Modal {
|
|||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_center()
|
.justify_center()
|
||||||
|
.relative()
|
||||||
.when_some(self.title, |this, title| {
|
.when_some(self.title, |this, title| {
|
||||||
this.h_10().font_semibold().text_center().child(title)
|
this.h_10().font_semibold().text_center().child(title)
|
||||||
}),
|
})
|
||||||
)
|
|
||||||
.when(self.show_close, |this| {
|
.when(self.show_close, |this| {
|
||||||
let on_cancel = on_cancel.clone();
|
let on_cancel = on_cancel.clone();
|
||||||
let on_close = on_close.clone();
|
let on_close = on_close.clone();
|
||||||
|
|
||||||
this.child(
|
this.child(
|
||||||
|
div()
|
||||||
|
.absolute()
|
||||||
|
.top_0()
|
||||||
|
.bottom_0()
|
||||||
|
.right_2()
|
||||||
|
.flex()
|
||||||
|
.items_center()
|
||||||
|
.child(
|
||||||
Button::new("close")
|
Button::new("close")
|
||||||
.icon(IconName::CloseCircleFill)
|
.icon(IconName::CloseCircleFill)
|
||||||
.absolute()
|
|
||||||
.top_1p5()
|
|
||||||
.right_2()
|
|
||||||
.custom(
|
.custom(
|
||||||
ButtonCustomVariant::new(window, cx)
|
ButtonCustomVariant::new(window, cx)
|
||||||
.foreground(cx.theme().icon_muted)
|
.foreground(cx.theme().icon_muted)
|
||||||
@@ -427,8 +432,10 @@ impl RenderOnce for Modal {
|
|||||||
on_close(&ClickEvent::default(), window, cx);
|
on_close(&ClickEvent::default(), window, cx);
|
||||||
window.close_modal(cx);
|
window.close_modal(cx);
|
||||||
}),
|
}),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
})
|
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.pt_px()
|
.pt_px()
|
||||||
|
|||||||
Reference in New Issue
Block a user