mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Elide text in materials slot
CURA-8979
This commit is contained in:
parent
359cb673bc
commit
e2c9e0a461
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue