mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Hide Read More button if not truncated
There would be nothing to read. Contributes to issue CURA-8561.
This commit is contained in:
parent
c8741898bf
commit
57093f0ef6
1 changed files with 4 additions and 2 deletions
|
|
@ -120,9 +120,9 @@ Rectangle
|
|||
|
||||
onLineLaidOut:
|
||||
{
|
||||
if(line.isLast)
|
||||
if(truncated && line.isLast)
|
||||
{
|
||||
line.width = Math.min(line.width, parent.width - readMoreButton.width)
|
||||
line.width = Math.min(line.width, parent.width - readMoreButton.width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -134,6 +134,8 @@ Rectangle
|
|||
anchors.bottom: parent.bottom
|
||||
height: authorBy.height //Height of a single line.
|
||||
|
||||
visible: descriptionLabel.truncated
|
||||
enabled: visible
|
||||
leftPadding: UM.Theme.getSize("default_margin").width
|
||||
rightPadding: 0
|
||||
textFont: descriptionLabel.font
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue