fix rich text display

This commit is contained in:
Gaelle Braud 2026-03-17 11:48:09 +01:00
parent 2b616b7ef1
commit 304f84d852
3 changed files with 4 additions and 1 deletions

View file

@ -244,6 +244,7 @@ ListView {
maximumLineCount: 1
visible: !remoteComposingInfo.visible
text: modelData ? modelData.core.lastMessageText : ""
textFormat: Text.AutoText
color: DefaultStyle.main2_400
font {
pixelSize: Typography.p1.pixelSize

View file

@ -34,7 +34,7 @@ TextEdit {
contentGui.core.setSearchedTextPart(searchedTextPart)
}
textFormat: Text.RichText // To supports links and imgs.
textFormat: Text.AutoText // To supports links and imgs.
wrapMode: TextEdit.Wrap
onLinkActivated: (link) => {

View file

@ -96,6 +96,7 @@ LoginLayout {
Text {
id: title
text: modelData.title
textFormat: Text.AutoText
font {
pixelSize: Typography.h2.pixelSize
weight: Typography.h2.weight
@ -105,6 +106,7 @@ LoginLayout {
id: txt
Layout.maximumWidth: Utils.getSizeWithScreenRatio(361)
wrapMode: Text.WordWrap
textFormat: Text.AutoText
font {
pixelSize: Typography.p1.pixelSize
weight: Typography.p1.weight