chore(StatusStickersPopup): unify the footer height

and fix spacing
This commit is contained in:
Lukáš Tinkl 2023-04-12 12:38:38 +02:00 committed by Lukáš Tinkl
parent b2f5cd2b35
commit 86a58d3298

View File

@ -250,14 +250,15 @@ Popup {
RowLayout { RowLayout {
id: footerContent id: footerContent
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 24
Layout.rightMargin: Style.current.padding / 2 Layout.rightMargin: Style.current.padding / 2
Layout.leftMargin: Style.current.padding / 2 Layout.leftMargin: Style.current.padding / 2
spacing: Style.current.padding / 2 spacing: Style.current.padding / 2
StatusFlatRoundButton { StatusFlatRoundButton {
id: btnAddStickerPack id: btnAddStickerPack
implicitHeight: 40 Layout.preferredWidth: 24
implicitWidth: 24 Layout.preferredHeight: 24
icon.name: "add" icon.name: "add"
type: StatusFlatRoundButton.Type.Tertiary type: StatusFlatRoundButton.Type.Tertiary
color: "transparent" color: "transparent"
@ -314,10 +315,8 @@ Popup {
model: d.stickerPacksLoading ? 7 : 0 model: d.stickerPacksLoading ? 7 : 0
delegate: Rectangle { delegate: Rectangle {
width: 24 Layout.preferredWidth: 24
height: 24 Layout.preferredHeight: 24
Layout.preferredHeight: height
Layout.preferredWidth: width
radius: width / 2 radius: width / 2
color: Style.current.backgroundHover color: Style.current.backgroundHover
} }