mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix reactions binding loop
This commit is contained in:
parent
f4ea0b215d
commit
a75d7f00bc
1 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,6 @@ Flow {
|
||||||
|
|
||||||
AbstractButton {
|
AbstractButton {
|
||||||
id: reaction
|
id: reaction
|
||||||
text: model.key
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
implicitWidth: contentItem.childrenRect.width + contentItem.leftPadding*2
|
implicitWidth: contentItem.childrenRect.width + contentItem.leftPadding*2
|
||||||
implicitHeight: contentItem.childrenRect.height
|
implicitHeight: contentItem.childrenRect.height
|
||||||
|
@ -33,13 +32,13 @@ Flow {
|
||||||
font.family: settings.emoji_font_family
|
font.family: settings.emoji_font_family
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
elideWidth: 150
|
elideWidth: 150
|
||||||
text: reaction.text
|
text: model.key
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.baseline: reactionCounter.baseline
|
anchors.baseline: reactionCounter.baseline
|
||||||
id: reactionText
|
id: reactionText
|
||||||
text: textMetrics.elidedText + (textMetrics.elidedText == textMetrics.text ? "" : "…")
|
text: textMetrics.elidedText + (textMetrics.elidedText == model.key ? "" : "…")
|
||||||
font.family: settings.emoji_font_family
|
font.family: settings.emoji_font_family
|
||||||
color: reaction.hovered ? colors.highlight : colors.text
|
color: reaction.hovered ? colors.highlight : colors.text
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
|
|
Loading…
Reference in a new issue