Browse Source

Fixed some layout issues with the Package Cards

Contributes to: CURA-8587
Jelle Spijker 3 years ago
parent
commit
3c225f1a73

+ 5 - 3
plugins/Marketplace/resources/qml/PackageCard.qml

@@ -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")

+ 1 - 1
resources/themes/cura-light/theme.json

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