From cc589cec95de1b6db19a8ce3cac1ede2e6d19b9f Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 19 Feb 2025 00:03:47 +1100
Subject: notifpopups: more compact + better styles
---
src/widgets/notification.tsx | 35 ++++++++++++++++++++++++++---------
1 file changed, 26 insertions(+), 9 deletions(-)
(limited to 'src/widgets')
diff --git a/src/widgets/notification.tsx b/src/widgets/notification.tsx
index 3def064..99ab71c 100644
--- a/src/widgets/notification.tsx
+++ b/src/widgets/notification.tsx
@@ -84,17 +84,34 @@ export default class Notification extends Widget.Box {
{notification.image && }
-
+ {notification.body && (
+
+ )}
-
-
+ {!popup && (
+
+ notification.dismiss()}
+ label="Close"
+ />
+ {notification.actions.map(a => (
+ notification.invoke(a.id)}>
+ {notification.actionIcons ? : a.label}
+
+ ))}
+
+ )}
--
cgit v1.2.3-freya