💥 fix(notification): image expanding with text content

This commit is contained in:
retrozinndev
2025-09-16 20:21:39 -03:00
parent 206880cb51
commit cb01765a8e
+4 -1
View File
@@ -83,8 +83,11 @@ export function NotificationWidget({ notification, actionClicked, holdOnHover, s
<Separator alpha={.1} orientation={Gtk.Orientation.VERTICAL} /> <Separator alpha={.1} orientation={Gtk.Orientation.VERTICAL} />
<Gtk.Box class={"content"}> <Gtk.Box class={"content"}>
{getNotificationImage(notification) && {getNotificationImage(notification) &&
<Gtk.Box class={"image"} hexpand={false} vexpand={false} <Gtk.Box class={"image"} hexpand={false}
css={`background-image: url("${getNotificationImage(notification)}");`} css={`background-image: url("${getNotificationImage(notification)}");`}
valign={Gtk.Align.START}
widthRequest={68}
heightRequest={64}
/> />
} }
<Gtk.Box class={"text"} orientation={Gtk.Orientation.VERTICAL} <Gtk.Box class={"text"} orientation={Gtk.Orientation.VERTICAL}