mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-31 08:44:45 +00:00
make space for the buttons
This commit is contained in:
parent
359f513a98
commit
758d3694a1
1 changed files with 6 additions and 2 deletions
|
|
@ -27,7 +27,9 @@ MouseArea {
|
||||||
id: notificationItem
|
id: notificationItem
|
||||||
|
|
||||||
|
|
||||||
height: Math.max(messageLayout.height, icon.height) + background.margins.top + background.margins.bottom + (expanded ? actionsLayout.height : 0)
|
//actionsLayout.height*2 because the text is centered
|
||||||
|
//TODO: center the whole block not only the text
|
||||||
|
height: Math.max(messageLayout.height, icon.height) + background.margins.top + background.margins.bottom + (expanded ? actionsLayout.height*2 : 0)
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.bottomMargin: 10
|
anchors.bottomMargin: 10
|
||||||
drag.axis: Drag.XAxis
|
drag.axis: Drag.XAxis
|
||||||
|
|
@ -148,9 +150,11 @@ MouseArea {
|
||||||
height: width
|
height: width
|
||||||
source: appIcon && appIcon.length > 0 ? appIcon : "preferences-desktop-notification"
|
source: appIcon && appIcon.length > 0 ? appIcon : "preferences-desktop-notification"
|
||||||
}
|
}
|
||||||
RowLayout {
|
|
||||||
|
Flow {
|
||||||
id: actionsLayout
|
id: actionsLayout
|
||||||
anchors {
|
anchors {
|
||||||
|
left: messageLayout.left
|
||||||
right: messageLayout.right
|
right: messageLayout.right
|
||||||
top: messageLayout.bottom
|
top: messageLayout.bottom
|
||||||
topMargin: units.smallSpacing
|
topMargin: units.smallSpacing
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue