summary refs log tree commit diff
path: root/resources/qml/ElidedLabel.qml
diff options
context:
space:
mode:
authorMalte E <97891689+maltee1@users.noreply.github.com>2022-03-20 05:12:41 +0100
committerGitHub <noreply@github.com>2022-03-20 04:12:41 +0000
commita42335aed2cc44591fa836a0911eaef07e345250 (patch)
tree4b636425f73e199d055467a5f0f1e46bdee83027 /resources/qml/ElidedLabel.qml
parentAdded translation using Weblate (Vietnamese) (diff)
downloadnheko-a42335aed2cc44591fa836a0911eaef07e345250.tar.xz
elide usernames in timeline (#997)
* Use advanceWidth to get the with of the original text

Co-authored-by: Nicolas Werner <nicolas.werner@hotmail.de>
Diffstat (limited to 'resources/qml/ElidedLabel.qml')
-rw-r--r--resources/qml/ElidedLabel.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/qml/ElidedLabel.qml b/resources/qml/ElidedLabel.qml

index 0e892aeb..11df479a 100644 --- a/resources/qml/ElidedLabel.qml +++ b/resources/qml/ElidedLabel.qml
@@ -12,6 +12,7 @@ Label { property alias fullText: metrics.text property alias elideWidth: metrics.elideWidth + property int fullTextWidth: Math.ceil(metrics.advanceWidth) color: Nheko.colors.text text: (textFormat == Text.PlainText) ? metrics.elidedText : TimelineManager.escapeEmoji(TimelineManager.htmlEscape(metrics.elidedText))