mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
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:
commit
f4669285f9
1 changed files with 8 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue