mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:59:02 +08:00
Elide text in materials slot
CURA-8979
This commit is contained in:
parent
359cb673bc
commit
e2c9e0a461
@ -53,11 +53,14 @@ Rectangle
|
|||||||
{
|
{
|
||||||
id: materialLabel
|
id: materialLabel
|
||||||
text: material != null ? `${material.brand} ${material.name}` : ""
|
text: material != null ? `${material.brand} ${material.name}` : ""
|
||||||
|
elide: Text.ElideRight
|
||||||
|
wrapMode: Text.NoWrap
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.left: swatch.right
|
anchors.left: swatch.right
|
||||||
anchors.verticalCenter: materialSlot.verticalCenter
|
anchors.right: parent.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
font: UM.Theme.getFont("default")
|
anchors.rightMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
|
anchors.verticalCenter: materialSlot.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
|
Loading…
x
Reference in New Issue
Block a user