1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -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
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 {