diff --git a/panels/notification/plugin/NotifyItemContent.qml b/panels/notification/plugin/NotifyItemContent.qml index 7668fb3bb..3a1dc3df0 100644 --- a/panels/notification/plugin/NotifyItemContent.qml +++ b/panels/notification/plugin/NotifyItemContent.qml @@ -12,8 +12,6 @@ import org.deepin.ds.notification NotifyItem { id: root - height:Math.max(DStyle.Style.control.implicitHeight(root), - actionPlaceHolder.active ? root.miniContentHeight + actionPlaceHolder.height : 0) property bool closeVisible: root.hovered || root.activeFocus property int miniContentHeight: NotifyStyle.contentItem.miniHeight @@ -89,25 +87,6 @@ NotifyItem { } } - Control { - id: actionPlaceHolder - anchors { - bottom: parent.bottom - bottomMargin: 8 - right: parent.right - rightMargin: 8 - } - contentItem: Loader { - active: !root.strongInteractive && root.actions.length > 0 && root.hovered - sourceComponent: NotifyAction { - actions: root.actions - onActionInvoked: function (actionId) { - root.actionInvoked(actionId) - } - } - } - } - contentItem: RowLayout { spacing: 0 Binding { @@ -230,7 +209,7 @@ NotifyItem { } Loader { - active: root.strongInteractive && root.actions.length > 0 + active: root.actions.length > 0 visible: active Layout.alignment: Qt.AlignRight | Qt.AlignBottom sourceComponent: NotifyAction {