From dbab0741224cbdd5310d930ba4367174e211207a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:12:55 +0700 Subject: [PATCH] proper spacing for notif actions --- .config/ags/lib/notification.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.config/ags/lib/notification.js b/.config/ags/lib/notification.js index 23de6b8cd..4c50fb785 100644 --- a/.config/ags/lib/notification.js +++ b/.config/ags/lib/notification.js @@ -158,18 +158,23 @@ export default ({ label: notifObject.body, }), Box({ - homogeneous: true, - className: 'notif-actions', + className: 'notif-actions spacing-h-5', children: [ Button({ + hexpand: true, className: `notif-action notif-action-${notifObject.urgency}`, - label: 'Close', onClicked: () => destroyWithAnims(), + child: Label({ + label: 'Close', + }) }), ...notifObject.actions.map(action => Widget.Button({ + hexpand: true, className: `notif-action notif-action-${notifObject.urgency}`, onClicked: () => notifObject.invoke(action.id), - label: action.label, + child: Label({ + label: action.label, + }) })) ], })