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