mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 17:35:55 +08:00
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:
parent
0546f58e57
commit
e173fa2d9d
@ -381,14 +381,30 @@ Rectangle
|
|||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
id: extendedDescription
|
id: extendedDescription
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
padding: UM.Theme.getSize("default_margin").width
|
padding: UM.Theme.getSize("default_margin").width
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
width: parent.width - parent.padding * 2
|
||||||
|
|
||||||
text: catalog.i18nc("@header", "Description")
|
text: catalog.i18nc("@header", "Description")
|
||||||
font: UM.Theme.getFont("medium_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
color: UM.Theme.getColor("text")
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user