Skip to content
Snippets Groups Projects
Commit a75d7f00 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix reactions binding loop

parent f4ea0b21
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ Flow {
AbstractButton {
id: reaction
text: model.key
hoverEnabled: true
implicitWidth: contentItem.childrenRect.width + contentItem.leftPadding*2
implicitHeight: contentItem.childrenRect.height
......@@ -33,13 +32,13 @@ Flow {
font.family: settings.emoji_font_family
elide: Text.ElideRight
elideWidth: 150
text: reaction.text
text: model.key
}
Text {
anchors.baseline: reactionCounter.baseline
id: reactionText
text: textMetrics.elidedText + (textMetrics.elidedText == textMetrics.text ? "" : "")
text: textMetrics.elidedText + (textMetrics.elidedText == model.key ? "" : "")
font.family: settings.emoji_font_family
color: reaction.hovered ? colors.highlight : colors.text
maximumLineCount: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment