1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

replytorow: fix elideRight

Else, the text was overflowing

Change-Id: Idd27682d612cc35fce045967025df49ad1a1a202
This commit is contained in:
Sébastien Blin 2023-01-25 16:20:04 -05:00
parent df63960974
commit f81dc754c1

View file

@ -84,9 +84,15 @@ Item {
Layout.maximumWidth: JamiTheme.preferredFieldWidth - JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
text: ReplyToBody
elide: Text.ElideRight
TextMetrics {
id: metrics
elide: Text.ElideRight
elideWidth: JamiTheme.preferredFieldWidth - JamiTheme.preferredMarginSize
text: ReplyToBody
}
textFormat: Text.MarkdownText
text: metrics.elidedText
color: UtilsAdapter.luma(bubble.color) ?
JamiTheme.chatviewTextColorLight :