Add package description in full to detail card

I realise that this might cause the card to become taller than the window. Might need to do something about that.

Contributes to issue CURA-8565.
This commit is contained in:
Ghostkeeper 2021-11-29 18:33:58 +01:00
parent 0546f58e57
commit e173fa2d9d
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -381,14 +381,30 @@ Rectangle
Column
{
id: extendedDescription
width: parent.width
padding: UM.Theme.getSize("default_margin").width
topPadding: 0
spacing: UM.Theme.getSize("default_margin").height
Label
{
width: parent.width - parent.padding * 2
text: catalog.i18nc("@header", "Description")
font: UM.Theme.getFont("medium_bold")
font: UM.Theme.getFont("default_bold")
color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
Label
{
width: parent.width - parent.padding * 2
text: packageData.description
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
wrapMode: Text.Wrap
}
}
}