From dda2fad2649fac8d46663e97aeab91991df67a5a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 23 Feb 2025 16:48:26 +1100 Subject: notifpopups: shrink image --- src/widgets/notification.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/notification.tsx b/src/widgets/notification.tsx index 10f2076..d076861 100644 --- a/src/widgets/notification.tsx +++ b/src/widgets/notification.tsx @@ -51,18 +51,19 @@ const AppIcon = ({ appIcon, desktopEntry }: { appIcon: string; desktopEntry: str return icon ? : null; }; -const Image = ({ icon }: { icon: string }) => { +const Image = ({ popup, icon }: { popup?: boolean; icon: string }) => { if (GLib.file_test(icon, GLib.FileTest.EXISTS)) return ( ); - if (Astal.Icon.lookup_icon(icon)) return ; + if (Astal.Icon.lookup_icon(icon)) + return ; return null; }; @@ -93,7 +94,7 @@ export default class Notification extends Widget.Box { - {notification.image && } + {notification.image && }