Commit 2ea17542 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

updates: don't show always show all text at once

Instead allow to see the rest if it looks especially interesting to the
user. Generally, the top lines should be the ones more relevant anyway.
parent 32622a9d
......@@ -204,8 +204,26 @@ Kirigami.ApplicationWindow
Label {
id: desc
Layout.fillWidth: true
Layout.maximumHeight: clip ? window.height * 0.5 : implicitHeight
clip: true
textFormat: Text.StyledText
wrapMode: Text.WordWrap
readonly property var bottomShadow: Shadow {
parent: desc
anchors {
right: parent.right
left: parent.left
bottom: parent.bottom
}
visible: desc.clip
edge: Qt.BottomEdge
height: desc.height * 0.01
}
}
Button {
text: desc.clip ? i18n("Show all") : i18n("Hide")
onClicked: desc.clip = !desc.clip
}
RowLayout {
Layout.alignment: Qt.AlignRight
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment