From 0b1c33170597dfbb053c30a75902d7c765ef8e98 Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 31 Oct 2025 09:58:20 -0400 Subject: [PATCH] power: resize confirmation modals --- Modals/Common/ConfirmModal.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Modals/Common/ConfirmModal.qml b/Modals/Common/ConfirmModal.qml index f7bbaaef..c569d601 100644 --- a/Modals/Common/ConfirmModal.qml +++ b/Modals/Common/ConfirmModal.qml @@ -58,7 +58,7 @@ DankModal { shouldBeVisible: false allowStacking: true width: 350 - height: 160 + height: contentLoader.item ? contentLoader.item.implicitHeight + Theme.spacingM * 2 : 160 enableShadow: true shouldHaveFocus: true onBackgroundClicked: { @@ -158,10 +158,16 @@ DankModal { content: Component { Item { anchors.fill: parent + implicitHeight: mainColumn.implicitHeight Column { - anchors.centerIn: parent - width: parent.width - Theme.spacingM * 2 + id: mainColumn + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.top + anchors.leftMargin: Theme.spacingM + anchors.rightMargin: Theme.spacingM + anchors.topMargin: Theme.spacingM spacing: Theme.spacingM StyledText {