mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:39:02 +08:00
CURA-5035 Use elide for text clipping
This commit is contained in:
parent
62aeb6c954
commit
c2ed2a47e7
@ -56,14 +56,9 @@ Item
|
||||
Label
|
||||
{
|
||||
id: info
|
||||
text:
|
||||
{
|
||||
if (model.description.length > 50)
|
||||
{
|
||||
return model.description.substring(0, 50) + "..."
|
||||
}
|
||||
return model.description
|
||||
}
|
||||
text: model.description
|
||||
maximumLineCount: 2
|
||||
elide: Text.ElideRight
|
||||
width: parent.width
|
||||
wrapMode: Text.WordWrap
|
||||
color: UM.Theme.getColor("text_medium")
|
||||
|
Loading…
x
Reference in New Issue
Block a user