mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Fixed some layout issues with the Package Cards
Contributes to: CURA-8587
This commit is contained in:
parent
5373e9a36d
commit
3c225f1a73
2 changed files with 6 additions and 4 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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],
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue