1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Recalculate compact modes

This commit is contained in:
purian23
2025-07-24 16:05:30 -04:00
parent 0e968d910d
commit 0db026f775
2 changed files with 16 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ Rectangle {
property int availableWidth: 400
readonly property int baseWidth: contentRow.implicitWidth + Theme.spacingS * 2
readonly property int maxNormalWidth: 456
readonly property int maxCompactWidth: 200
readonly property int maxCompactWidth: 288
width: compactMode ? Math.min(baseWidth, maxCompactWidth) : Math.min(baseWidth, maxNormalWidth)
height: 30
@@ -55,8 +55,8 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
elide: Text.ElideRight
maximumLineCount: 1
width: Math.min(implicitWidth, compactMode ? 60 : 250)
visible: !compactMode || text.length < 15
width: Math.min(implicitWidth, compactMode ? 180 : 250)
visible: text.length > 0
}
}