forked from Shinonome/dots-hyprland
proper spacing for notif actions
This commit is contained in:
@@ -158,18 +158,23 @@ export default ({
|
|||||||
label: notifObject.body,
|
label: notifObject.body,
|
||||||
}),
|
}),
|
||||||
Box({
|
Box({
|
||||||
homogeneous: true,
|
className: 'notif-actions spacing-h-5',
|
||||||
className: 'notif-actions',
|
|
||||||
children: [
|
children: [
|
||||||
Button({
|
Button({
|
||||||
|
hexpand: true,
|
||||||
className: `notif-action notif-action-${notifObject.urgency}`,
|
className: `notif-action notif-action-${notifObject.urgency}`,
|
||||||
label: 'Close',
|
|
||||||
onClicked: () => destroyWithAnims(),
|
onClicked: () => destroyWithAnims(),
|
||||||
|
child: Label({
|
||||||
|
label: 'Close',
|
||||||
|
})
|
||||||
}),
|
}),
|
||||||
...notifObject.actions.map(action => Widget.Button({
|
...notifObject.actions.map(action => Widget.Button({
|
||||||
|
hexpand: true,
|
||||||
className: `notif-action notif-action-${notifObject.urgency}`,
|
className: `notif-action notif-action-${notifObject.urgency}`,
|
||||||
onClicked: () => notifObject.invoke(action.id),
|
onClicked: () => notifObject.invoke(action.id),
|
||||||
label: action.label,
|
child: Label({
|
||||||
|
label: action.label,
|
||||||
|
})
|
||||||
}))
|
}))
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user