mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
CURA-5035 Use elide for text clipping
This commit is contained in:
parent
62aeb6c954
commit
c2ed2a47e7
1 changed files with 3 additions and 8 deletions
|
@ -56,14 +56,9 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: info
|
id: info
|
||||||
text:
|
text: model.description
|
||||||
{
|
maximumLineCount: 2
|
||||||
if (model.description.length > 50)
|
elide: Text.ElideRight
|
||||||
{
|
|
||||||
return model.description.substring(0, 50) + "..."
|
|
||||||
}
|
|
||||||
return model.description
|
|
||||||
}
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
color: UM.Theme.getColor("text_medium")
|
color: UM.Theme.getColor("text_medium")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue