mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
CURA-5035 Improved details pages
This commit is contained in:
parent
7a0fe74989
commit
f8672ecbc6
9 changed files with 61 additions and 37 deletions
|
@ -34,7 +34,21 @@ Rectangle
|
|||
Label
|
||||
{
|
||||
width: parent.width
|
||||
text: model.description
|
||||
text:
|
||||
{
|
||||
if (model.description.length > 235)
|
||||
{
|
||||
if (model.description.substring(234, 235) == " ")
|
||||
{
|
||||
return model.description.substring(0, 234) + "..."
|
||||
}
|
||||
else
|
||||
{
|
||||
return model.description.substring(0, 235) + "..."
|
||||
}
|
||||
}
|
||||
return model.description
|
||||
}
|
||||
wrapMode: Text.WordWrap
|
||||
color: UM.Theme.getColor("text")
|
||||
font: UM.Theme.getFont("default")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue