From 05883bcb71d5cd52fecddc49dfe7081babb2cd9c Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 15 Feb 2024 17:11:49 +0100 Subject: [PATCH] Fix reaction delegate sizing for text reaction (cherry picked from commit 755a060e12897e45c2b7c028904b74abbcc8aa0f) --- src/qml/ReactionDelegate.qml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/qml/ReactionDelegate.qml b/src/qml/ReactionDelegate.qml index 2c7156a05..c019c721c 100644 --- a/src/qml/ReactionDelegate.qml +++ b/src/qml/ReactionDelegate.qml @@ -39,17 +39,15 @@ Flow { width: Math.max(contentItem.implicitWidth + leftPadding + rightPadding, height) height: Math.round(Kirigami.Units.gridUnit * 1.5) - contentItem: Item { - QQC2.Label { - id: reactionLabel - anchors.centerIn: parent - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - text: reactionDelegate.textContent - background: null - wrapMode: TextEdit.NoWrap - textFormat: Text.RichText - } + contentItem: QQC2.Label { + id: reactionLabel + anchors.centerIn: parent + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + text: reactionDelegate.textContent + background: null + wrapMode: TextEdit.NoWrap + textFormat: Text.RichText } padding: Kirigami.Units.smallSpacing