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

power: resize confirmation modals

This commit is contained in:
bbedward
2025-10-31 09:58:20 -04:00
parent 3c354b71f5
commit 0b1c331705

View File

@@ -58,7 +58,7 @@ DankModal {
shouldBeVisible: false shouldBeVisible: false
allowStacking: true allowStacking: true
width: 350 width: 350
height: 160 height: contentLoader.item ? contentLoader.item.implicitHeight + Theme.spacingM * 2 : 160
enableShadow: true enableShadow: true
shouldHaveFocus: true shouldHaveFocus: true
onBackgroundClicked: { onBackgroundClicked: {
@@ -158,10 +158,16 @@ DankModal {
content: Component { content: Component {
Item { Item {
anchors.fill: parent anchors.fill: parent
implicitHeight: mainColumn.implicitHeight
Column { Column {
anchors.centerIn: parent id: mainColumn
width: parent.width - Theme.spacingM * 2 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 spacing: Theme.spacingM
StyledText { StyledText {