From 304f84d8525d66355897a5a9516625b569b19821 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Tue, 17 Mar 2026 11:48:09 +0100 Subject: [PATCH] fix rich text display --- Linphone/view/Control/Display/Chat/ChatListView.qml | 1 + Linphone/view/Control/Display/Chat/ChatTextContent.qml | 2 +- Linphone/view/Page/Main/Start/WelcomePage.qml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Linphone/view/Control/Display/Chat/ChatListView.qml b/Linphone/view/Control/Display/Chat/ChatListView.qml index 33f72dc68..0aec90885 100644 --- a/Linphone/view/Control/Display/Chat/ChatListView.qml +++ b/Linphone/view/Control/Display/Chat/ChatListView.qml @@ -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 diff --git a/Linphone/view/Control/Display/Chat/ChatTextContent.qml b/Linphone/view/Control/Display/Chat/ChatTextContent.qml index e907cb0d4..d42a34d07 100644 --- a/Linphone/view/Control/Display/Chat/ChatTextContent.qml +++ b/Linphone/view/Control/Display/Chat/ChatTextContent.qml @@ -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) => { diff --git a/Linphone/view/Page/Main/Start/WelcomePage.qml b/Linphone/view/Page/Main/Start/WelcomePage.qml index 811e71694..d13f60294 100644 --- a/Linphone/view/Page/Main/Start/WelcomePage.qml +++ b/Linphone/view/Page/Main/Start/WelcomePage.qml @@ -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