diff --git a/shell/package/contents/configuration/LatteDockConfiguration.qml b/shell/package/contents/configuration/LatteDockConfiguration.qml index c1ca8d438..ee9a642f2 100644 --- a/shell/package/contents/configuration/LatteDockConfiguration.qml +++ b/shell/package/contents/configuration/LatteDockConfiguration.qml @@ -225,18 +225,15 @@ FocusScope { PlasmaComponents.ToolButton { id: pinButton - anchors.right: parent.right - anchors.top: parent.top - //!avoid editMode box shadow - anchors.topMargin: units.smallSpacing - anchors.rightMargin: units.smallSpacing - Layout.fillWidth: false Layout.fillHeight: false Layout.preferredWidth: width Layout.preferredHeight: height Layout.alignment: Qt.AlignRight | Qt.AlignVCenter Layout.bottomMargin: units.smallSpacing * 3 + //!avoid editMode box shadow + Layout.topMargin: units.smallSpacing * 2 + Layout.rightMargin: units.smallSpacing iconSource: "window-pin" checkable: true diff --git a/shell/package/contents/configuration/TweaksConfig.qml b/shell/package/contents/configuration/TweaksConfig.qml index 8f4de77e9..bd5639fbe 100644 --- a/shell/package/contents/configuration/TweaksConfig.qml +++ b/shell/package/contents/configuration/TweaksConfig.qml @@ -250,7 +250,8 @@ PlasmaComponents.Page { PlasmaComponents.Button { iconSource: "distribute-horizontal-x" text: i18n("Add Spacer") - Layout.minimumWidth: 0.5 * (parent.width - units.smallSpacing) + Layout.minimumWidth: 0.5 * (content.width - 5 * units.smallSpacing) + Layout.maximumWidth: Layout.minimumWidth Layout.alignment: Qt.AlignLeft tooltip: i18n("Add a spacer to separate applets")