Simplify code for padding delegates

This commit is contained in:
Loren Burkholder 2021-11-15 19:04:33 -05:00
parent 36f1bbcc02
commit f048caee69
2 changed files with 8 additions and 4 deletions

View file

@ -155,7 +155,7 @@ ApplicationWindow {
} }
ImageButton { ImageButton {
image: ":/icons/icons/ui/remove-symbol.png" image: ":/icons/icons/ui/dismiss.svg"
onClicked: invitees.removeUser(model.mxid) onClicked: invitees.removeUser(model.mxid)
} }

View file

@ -75,8 +75,8 @@ ApplicationWindow {
id: receiptLayout id: receiptLayout
spacing: Nheko.paddingMedium spacing: Nheko.paddingMedium
anchors.verticalCenter: parent.verticalCenter anchors.fill: parent
x: parent.x + Nheko.paddingSmall anchors.margins: Nheko.paddingSmall
Avatar { Avatar {
width: Nheko.avatarSize width: Nheko.avatarSize
@ -103,12 +103,16 @@ ApplicationWindow {
} }
Item { Item {
Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
} }
} }
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
} }
CursorShape { CursorShape {