Fixed some layout issues with the Package Cards

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-11-29 14:13:29 +01:00
parent 5373e9a36d
commit 3c225f1a73
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
2 changed files with 6 additions and 4 deletions

View file

@ -185,10 +185,11 @@ Rectangle
} }
// Description area
Item Item
{ {
id: descriptionArea id: descriptionArea
height: descriptionLabel.height height: childrenRect.height > descriptionLabel.height ? childrenRect.height : descriptionLabel.height
anchors anchors
{ {
top: titleBar.bottom top: titleBar.bottom
@ -269,6 +270,7 @@ Rectangle
{ {
bottom: parent.bottom bottom: parent.bottom
left: packageItem.right left: packageItem.right
right: parent.right
margins: UM.Theme.getSize("default_margin").height margins: UM.Theme.getSize("default_margin").height
} }
spacing: UM.Theme.getSize("narrow_margin").width spacing: UM.Theme.getSize("narrow_margin").width
@ -276,7 +278,7 @@ Rectangle
Label Label
{ {
id: authorBy id: authorBy
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignVCenter
text: catalog.i18nc("@label", "By") text: catalog.i18nc("@label", "By")
font: UM.Theme.getFont("default") font: UM.Theme.getFont("default")
@ -287,7 +289,7 @@ Rectangle
{ {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: authorBy.height Layout.preferredHeight: authorBy.height
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignVCenter
text: packageData.authorName text: packageData.authorName
textFont: UM.Theme.getFont("default_bold") textFont: UM.Theme.getFont("default_bold")

View file

@ -554,7 +554,7 @@
"standard_list_lineheight": [1.5, 1.5], "standard_list_lineheight": [1.5, 1.5],
"standard_arrow": [1.0, 1.0], "standard_arrow": [1.0, 1.0],
"card": [25.0, 8.75], "card": [25.0, 10],
"card_icon": [6.0, 6.0], "card_icon": [6.0, 6.0],
"card_tiny_icon": [1.5, 1.5], "card_tiny_icon": [1.5, 1.5],