From 53d0f30ffc5589dd49d5d0149842e55bb1d5b48d Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Sun, 29 May 2022 13:15:04 +0200 Subject: [PATCH] ResultDelegate: Fix action buttons fully expanding on height This is a problem for multiline results where the result height can be indefinitely long. --- lib/qml/ResultDelegate.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/qml/ResultDelegate.qml b/lib/qml/ResultDelegate.qml index 2fc985b..71fbfb0 100644 --- a/lib/qml/ResultDelegate.qml +++ b/lib/qml/ResultDelegate.qml @@ -198,8 +198,8 @@ MouseArea { verticalAlignment: Text.AlignVCenter // For multiLine we offer styled text, otherwise we default to plain text textFormat: model.multiLine ? Text.StyledText : Text.PlainText - - Layout.maximumWidth: labelWrapper.width - typePixmap.width - actionsRow.width + // The extra spacing accounts for the right margin so the text doesn't overlap the actions + Layout.maximumWidth: labelWrapper.width - typePixmap.width - actionsRow.width - 2 * PlasmaCore.Units.smallSpacing } PlasmaComponents3.Label { @@ -246,7 +246,7 @@ MouseArea { PlasmaComponents3.ToolButton { width: height - height: listItem.height + height: PlasmaCore.Units.iconSizes.medium visible: modelData.visible || true enabled: modelData.enabled || true @@ -258,8 +258,8 @@ MouseArea { PlasmaCore.IconItem { anchors.centerIn: parent - width: units.iconSizes.smallMedium - height: units.iconSizes.smallMedium + implicitWidth: units.iconSizes.smallMedium + implicitHeight: units.iconSizes.smallMedium // ToolButton cannot cope with QIcon source: modelData.icon || "" active: parent.hovered || parent.checked -- GitLab