mirror of https://github.com/KDE/kasts.git
Limit feed description to two lines until the "show more" button is pressed
BUG: 461216
This commit is contained in:
parent
285d3e2c62
commit
50e88a11c2
|
@ -188,7 +188,9 @@ Kirigami.ScrollablePage {
|
|||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignTop
|
||||
textFormat: TextEdit.RichText
|
||||
textFormat: page.showMoreInfo ? TextEdit.RichText : Text.StyledText
|
||||
maximumLineCount: page.showMoreInfo ? undefined : 2
|
||||
elide: Text.ElideRight
|
||||
text: feed.description
|
||||
font.pointSize: Kirigami.Theme.defaultFont.pointSize
|
||||
wrapMode: Text.WordWrap
|
||||
|
|
Loading…
Reference in New Issue