Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #441 from lduboeuf/xenial_-_notification_truncation
Browse files Browse the repository at this point in the history
YUMI-14 Notifications: allow more than 2 lines when hint "x-canonical-truncation" is set to false
  • Loading branch information
Flohack74 authored Dec 13, 2022
2 parents 2e8dad4 + 7ce9e6e commit aded21a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
@Library('ubports-build-tools') _
buildAndProvideDebianPackage()
buildAndProvideDebianPackage(
/* isArchIndependent */ false,
/* ignoredArchs */ [],
/* isHeavyPackage */ true
)
10 changes: 9 additions & 1 deletion qml/Notifications/Notification.qml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,15 @@ StyledItem {
font.weight: Font.Light
color: theme.palette.normal.backgroundTertiaryText
wrapMode: Text.Wrap
maximumLineCount: type === Notification.SnapDecision ? 12 : 2
maximumLineCount: {
if (type === Notification.SnapDecision) {
return 12;
} else if (notification.hints["x-canonical-truncation"] === false) {
return 20;
} else {
return 2;
}
}
elide: Text.ElideRight
textFormat: Text.PlainText
lineHeight: 1.1
Expand Down

0 comments on commit aded21a

Please sign in to comment.