1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

notifications: update dimensions and text expansion logic

This commit is contained in:
bbedward
2026-01-21 16:51:39 -05:00
parent ea0ffaacb0
commit b5194aa9e1
2 changed files with 8 additions and 8 deletions

View File

@@ -558,8 +558,8 @@ Rectangle {
visible: !expanded visible: !expanded
anchors.right: clearButton.visible ? clearButton.left : parent.right anchors.right: clearButton.visible ? clearButton.left : parent.right
anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL
anchors.bottom: parent.bottom anchors.top: collapsedContent.bottom
anchors.bottomMargin: contentSpacing anchors.topMargin: contentSpacing
spacing: contentSpacing spacing: contentSpacing
Repeater { Repeater {
@@ -614,8 +614,8 @@ Rectangle {
visible: !expanded && actionCount < 3 visible: !expanded && actionCount < 3
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Theme.spacingL anchors.rightMargin: Theme.spacingL
anchors.bottom: parent.bottom anchors.top: collapsedContent.bottom
anchors.bottomMargin: contentSpacing anchors.topMargin: contentSpacing
width: Math.max(clearText.implicitWidth + Theme.spacingM, compactMode ? 40 : 50) width: Math.max(clearText.implicitWidth + Theme.spacingM, compactMode ? 40 : 50)
height: actionButtonHeight height: actionButtonHeight
radius: Theme.spacingXS radius: Theme.spacingXS

View File

@@ -531,8 +531,8 @@ PanelWindow {
Row { Row {
anchors.right: clearButton.visible ? clearButton.left : parent.right anchors.right: clearButton.visible ? clearButton.left : parent.right
anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL
anchors.bottom: parent.bottom anchors.top: notificationContent.bottom
anchors.bottomMargin: contentSpacing anchors.topMargin: contentSpacing
spacing: contentSpacing spacing: contentSpacing
z: 20 z: 20
@@ -585,8 +585,8 @@ PanelWindow {
visible: actionCount < 3 visible: actionCount < 3
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Theme.spacingL anchors.rightMargin: Theme.spacingL
anchors.bottom: parent.bottom anchors.top: notificationContent.bottom
anchors.bottomMargin: contentSpacing anchors.topMargin: contentSpacing
width: Math.max(clearTextLabel.implicitWidth + Theme.spacingM, compactMode ? 40 : 50) width: Math.max(clearTextLabel.implicitWidth + Theme.spacingM, compactMode ? 40 : 50)
height: actionButtonHeight height: actionButtonHeight
radius: Theme.spacingXS radius: Theme.spacingXS