NotificationHistoryPanel: possible solution for #235
This commit is contained in:
parent
fb3c2f3bb2
commit
6549b0fc57
1 changed files with 4 additions and 2 deletions
|
|
@ -103,6 +103,9 @@ NPanel {
|
|||
font.pointSize: Style.fontSizeS * scaling
|
||||
color: Color.mOnSurfaceVariant
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
@ -139,6 +142,7 @@ NPanel {
|
|||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.maximumWidth: notificationList.width - (Style.marginM * scaling * 4) // Account for margins and delete button
|
||||
spacing: Style.marginXXS * scaling
|
||||
|
||||
NText {
|
||||
|
|
@ -148,7 +152,6 @@ NPanel {
|
|||
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mPrimary
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: parent.width
|
||||
maximumLineCount: 2
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
|
@ -159,7 +162,6 @@ NPanel {
|
|||
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: parent.width
|
||||
maximumLineCount: 3
|
||||
elide: Text.ElideRight
|
||||
visible: text.length > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue