Fix spacing between extruders in selector card

CURA-9278
This commit is contained in:
Jaime van Kessel 2022-09-16 14:29:34 +02:00
parent b7fd75b2dd
commit 681d33de81
No known key found for this signature in database
GPG Key ID: C85F7A3AF1BAA7C4

View File

@ -50,7 +50,7 @@ Rectangle
Layout.fillWidth: true
Layout.preferredWidth: parent.width / 2
Layout.alignment: Qt.AlignTop
spacing: UM.Theme.getSize("default_margin").width
spacing: UM.Theme.getSize("narrow_margin").width
Repeater
{
@ -88,7 +88,6 @@ Rectangle
text: modelData.materials.length == 1 ? `${modelData.materials[0].brand} ${modelData.materials[0].name}` : ""
visible: modelData.materials.length == 1
}
ColumnLayout
{
id: multiMaterialText
@ -98,7 +97,7 @@ Rectangle
visible: modelData.materials.length > 1
Repeater
{
model: modelData.materials
model: modelData.materials.length > 1 ? modelData.materials: null
UM.Label
{
text: `${modelData.brand} ${modelData.name}`