proper spacing for notif actions

This commit is contained in:
end-4
2024-01-04 20:12:55 +07:00
parent dfbfe006c5
commit dbab074122
+9 -4
View File
@@ -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,
})
}))
],
})