fix(ActivityCenter): Notification title is cut when long

* Added wrapMode in Text

Closes #12870
This commit is contained in:
Alexandra Betouni 2023-12-06 15:06:46 +02:00
parent effe996239
commit 7ee3b0bb57
2 changed files with 4 additions and 0 deletions

View File

@ -38,8 +38,11 @@ Item {
RowLayout { RowLayout {
id: layout id: layout
spacing: 4 spacing: 4
width: parent.width
StatusBaseText { StatusBaseText {
id: primaryDisplayName id: primaryDisplayName
Layout.fillWidth: true
objectName: "StatusMessageHeader_DisplayName" objectName: "StatusMessageHeader_DisplayName"
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
Layout.bottomMargin: 2 // offset for the underline to stay vertically centered Layout.bottomMargin: 2 // offset for the underline to stay vertically centered

View File

@ -96,6 +96,7 @@ ActivityNotificationBase {
Layout.fillWidth: true Layout.fillWidth: true
StatusMessageHeader { StatusMessageHeader {
Layout.fillWidth: true
displayNameLabel.text: d.title displayNameLabel.text: d.title
timestamp: root.notification.timestamp timestamp: root.notification.timestamp
} }