Fix reaction delegate sizing for text reaction
(cherry picked from commit 755a060e12)
This commit is contained in:
@@ -39,17 +39,15 @@ Flow {
|
|||||||
width: Math.max(contentItem.implicitWidth + leftPadding + rightPadding, height)
|
width: Math.max(contentItem.implicitWidth + leftPadding + rightPadding, height)
|
||||||
height: Math.round(Kirigami.Units.gridUnit * 1.5)
|
height: Math.round(Kirigami.Units.gridUnit * 1.5)
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: QQC2.Label {
|
||||||
QQC2.Label {
|
id: reactionLabel
|
||||||
id: reactionLabel
|
anchors.centerIn: parent
|
||||||
anchors.centerIn: parent
|
horizontalAlignment: Text.AlignHCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
text: reactionDelegate.textContent
|
||||||
text: reactionDelegate.textContent
|
background: null
|
||||||
background: null
|
wrapMode: TextEdit.NoWrap
|
||||||
wrapMode: TextEdit.NoWrap
|
textFormat: Text.RichText
|
||||||
textFormat: Text.RichText
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
padding: Kirigami.Units.smallSpacing
|
padding: Kirigami.Units.smallSpacing
|
||||||
|
|||||||
Reference in New Issue
Block a user