diff --git a/applets/quickshare/plasmoid/contents/ui/main.qml b/applets/quickshare/plasmoid/contents/ui/main.qml --- a/applets/quickshare/plasmoid/contents/ui/main.qml +++ b/applets/quickshare/plasmoid/contents/ui/main.qml @@ -29,10 +29,17 @@ id: root Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation - Layout.fillWidth: false - Layout.fillHeight:false - Layout.minimumWidth: 0 - Layout.minimumHeight: 0 + + readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge + || plasmoid.location === PlasmaCore.Types.RightEdge + || plasmoid.location === PlasmaCore.Types.BottomEdge + || plasmoid.location === PlasmaCore.Types.LeftEdge) + + Layout.minimumWidth: units.iconSizes.small + Layout.minimumHeight: Layout.minimumWidth + + Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 + Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 property string url: "" property string errorMessage: ""