diff --git a/Modals/Common/ConfirmModal.qml b/Modals/Common/ConfirmModal.qml index b0cdc0e4..f7bbaaef 100644 --- a/Modals/Common/ConfirmModal.qml +++ b/Modals/Common/ConfirmModal.qml @@ -68,9 +68,11 @@ DankModal { } } onOpened: { - modalFocusScope.forceActiveFocus() - modalFocusScope.focus = true - shouldHaveFocus = true + Qt.callLater(function () { + modalFocusScope.forceActiveFocus() + modalFocusScope.focus = true + shouldHaveFocus = true + }) } modalFocusScope.Keys.onPressed: function (event) { switch (event.key) { diff --git a/Modals/Spotlight/SpotlightContextMenu.qml b/Modals/Spotlight/SpotlightContextMenu.qml index 2d333613..ded34ccf 100644 --- a/Modals/Spotlight/SpotlightContextMenu.qml +++ b/Modals/Spotlight/SpotlightContextMenu.qml @@ -77,12 +77,14 @@ Popup { spacing: 1 Rectangle { - width: parent.width + implicitWidth: pinRow.implicitWidth + Theme.spacingS * 2 + width: implicitWidth height: 32 radius: Theme.cornerRadius color: pinMouseArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent" Row { + id: pinRow anchors.left: parent.left anchors.leftMargin: Theme.spacingS anchors.verticalCenter: parent.verticalCenter @@ -155,16 +157,16 @@ Popup { model: contextMenu.currentApp && contextMenu.currentApp.desktopEntry && contextMenu.currentApp.desktopEntry.actions ? contextMenu.currentApp.desktopEntry.actions : [] Rectangle { - width: parent.width + implicitWidth: actionRow.implicitWidth + Theme.spacingS * 2 + width: implicitWidth height: 32 radius: Theme.cornerRadius color: actionMouseArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent" Row { + id: actionRow anchors.left: parent.left anchors.leftMargin: Theme.spacingS - anchors.right: parent.right - anchors.rightMargin: Theme.spacingS anchors.verticalCenter: parent.verticalCenter spacing: Theme.spacingS @@ -189,8 +191,6 @@ Popup { color: Theme.surfaceText font.weight: Font.Normal anchors.verticalCenter: parent.verticalCenter - elide: Text.ElideRight - width: parent.width - (modelData.icon && modelData.icon !== "" ? (Theme.iconSize - 2 + Theme.spacingS) : 0) } } @@ -228,12 +228,14 @@ Popup { } Rectangle { - width: parent.width + implicitWidth: launchRow.implicitWidth + Theme.spacingS * 2 + width: implicitWidth height: 32 radius: Theme.cornerRadius color: launchMouseArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent" Row { + id: launchRow anchors.left: parent.left anchors.leftMargin: Theme.spacingS anchors.verticalCenter: parent.verticalCenter @@ -288,12 +290,14 @@ Popup { Rectangle { visible: SessionService.hasPrimeRun - width: parent.width + implicitWidth: primeRunRow.implicitWidth + Theme.spacingS * 2 + width: implicitWidth height: 32 radius: Theme.cornerRadius color: primeRunMouseArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent" Row { + id: primeRunRow anchors.left: parent.left anchors.leftMargin: Theme.spacingS anchors.verticalCenter: parent.verticalCenter diff --git a/Modules/AppDrawer/AppDrawerPopout.qml b/Modules/AppDrawer/AppDrawerPopout.qml index a477ed7e..84ef1247 100644 --- a/Modules/AppDrawer/AppDrawerPopout.qml +++ b/Modules/AppDrawer/AppDrawerPopout.qml @@ -800,12 +800,13 @@ DankPopout { model: contextMenu.currentApp && contextMenu.currentApp.desktopEntry && contextMenu.currentApp.desktopEntry.actions ? contextMenu.currentApp.desktopEntry.actions : [] Rectangle { - width: parent.width + width: Math.max(parent.width, actionRow.implicitWidth + Theme.spacingS * 2) height: 32 radius: Theme.cornerRadius color: actionMouseArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent" Row { + id: actionRow anchors.left: parent.left anchors.leftMargin: Theme.spacingS anchors.verticalCenter: parent.verticalCenter