aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/PopupCard.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/quickshell/PopupCard.qml')
-rw-r--r--modules/system/quickshell/PopupCard.qml11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/system/quickshell/PopupCard.qml b/modules/system/quickshell/PopupCard.qml
index 6563877..d4d609b 100644
--- a/modules/system/quickshell/PopupCard.qml
+++ b/modules/system/quickshell/PopupCard.qml
@@ -5,7 +5,7 @@ import QtQuick.Layouts
Squircle {
id: root
- readonly property int maxHeight: 440
+ property int maxHeight: 440
property int margins: 16
default property alias content: contentCol.data
@@ -13,7 +13,10 @@ Squircle {
height: Math.min(Math.max(contentCol.implicitHeight + 2 * margins, 80), maxHeight)
Behavior on height {
- SpringAnimation { spring: 3; damping: 0.25 }
+ SpringAnimation {
+ spring: 3
+ damping: 0.25
+ }
}
fillColor: Theme.bg
@@ -29,9 +32,7 @@ Squircle {
}
clip: true
contentWidth: availableWidth
- ScrollBar.vertical.policy: contentCol.implicitHeight > height
- ? ScrollBar.AsNeeded
- : ScrollBar.AlwaysOff
+ ScrollBar.vertical.policy: contentCol.implicitHeight > height ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff
ColumnLayout {
id: contentCol