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

View File

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