diff --git a/applets/taskmanager/package/contents/ui/ToolTipInstance.qml b/applets/taskmanager/package/contents/ui/ToolTipInstance.qml --- a/applets/taskmanager/package/contents/ui/ToolTipInstance.qml +++ b/applets/taskmanager/package/contents/ui/ToolTipInstance.qml @@ -71,17 +71,17 @@ readonly property string artist: currentMetadata["xesam:artist"] || "" readonly property string albumArt: currentMetadata["mpris:artUrl"] || "" + width: isWin? units.gridUnit * 16 : undefined + height: isWin? width / 1.5 : undefined spacing: units.smallSpacing // launcher icon + text labels + close button RowLayout { id: header // match spacing of DefaultToolTip.qml in plasma-framework spacing: isWin ? units.smallSpacing : units.largeSpacing - // This number controls the overall size of the window tooltips - Layout.maximumWidth: units.gridUnit * 16 - Layout.minimumWidth: isWin ? Layout.maximumWidth : 0 + Layout.fillWidth: true Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter // match margins of DefaultToolTip.qml in plasma-framework Layout.margins: isWin ? 0 : units.gridUnit / 2 @@ -171,8 +171,8 @@ Item { id: thumbnailSourceItem - Layout.minimumWidth: header.width - Layout.preferredHeight: header.width / 2 + Layout.fillWidth: true + Layout.fillHeight: true visible: isWin @@ -249,7 +249,7 @@ // Player controls row RowLayout { - Layout.maximumWidth: header.width + Layout.fillWidth: true visible: hasPlayer enabled: canControl