Merge pull request #4329 from nextcloud/buigfix/linecount-tray-activity

Increase maximum text line count in tray activity items to two lines
This commit is contained in:
Matthieu Gallien 2022-03-15 12:31:36 +01:00 committed by GitHub
commit f4669285f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,8 @@ RowLayout {
text: (root.activityData.type === "Activity" || root.activityData.type === "Notification") ? root.activityData.subject : root.activityData.message
width: parent.width
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
font.pixelSize: Style.topLinePixelSize
color: root.activityData.activityTextTitleColor
}
@ -58,18 +60,22 @@ RowLayout {
: (root.activityData.type === "File") ? root.activityData.subject
: (root.activityData.type === "Notification") ? root.activityData.message
: ""
height: (text === "") ? 0 : activityTextTitle.height
height: (text === "") ? 0 : implicitHeight
width: parent.width
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
font.pixelSize: Style.subLinePixelSize
}
Label {
id: activityTextDateTime
text: root.activityData.dateTime
height: (text === "") ? 0 : activityTextTitle.height
height: (text === "") ? 0 : implicitHeight
width: parent.width
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
font.pixelSize: Style.subLinePixelSize
color: "#808080"
}