chore: clean up

This commit is contained in:
2026-11-04 08:57:07 +07:00
parent ded23ab2f2
commit fa73124ee4
5 changed files with 161 additions and 19 deletions
+2 -2
View File
@@ -191,12 +191,12 @@ impl RenderOnce for Alert {
.flex_none()
.cursor_pointer()
.p_0p5()
.rounded(px(4.))
.rounded(theme.radius.sm)
.hover(|style| style.bg(muted))
.child(
icon(IconRole::Close)
.size(theme.sizes.small.dense_icon_size)
.color(foreground.alpha(0.55)),
.color(theme.colors.muted_foreground),
)
.on_click(move |_, _window, cx| on_dismiss(cx)),
)
+3 -5
View File
@@ -1,6 +1,4 @@
//! Toasts: succinct, temporary messages at the bottom center of the window
//! — Adwaita Toast, the macOS banner. One toast at a time: content, an
//! optional action, and a close button; fades in, then fades out.
//! Toasts: succinct, temporary messages at the bottom center of the window.
use std::rc::Rc;
use std::time::Duration;
@@ -333,12 +331,12 @@ fn pill(entry: &ToastEntry, toasts: &Entity<Toasts>, cx: &App) -> gpui::Stateful
.ml_4()
.cursor_pointer()
.p_0p5()
.rounded(px(4.))
.rounded(theme.radius.sm)
.hover(|style| style.bg(muted))
.child(
icon(IconRole::Close)
.size(dense_icon_size)
.color(foreground.alpha(0.55)),
.color(theme.colors.muted_foreground),
)
.on_click(move |_, _window, cx| {
toasts.update(cx, |toasts, cx| {