From a48b1cedd0e56a2bac6d575cafb98c3d7584076c Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 20 May 2020 11:08:02 -0400 Subject: [PATCH] Don't limit width of messages with code blocks --- TODO.md | 2 +- src/gui/Pages/Chat/Timeline/EventContent.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 58a9bb79..6916d2a9 100644 --- a/TODO.md +++ b/TODO.md @@ -2,7 +2,7 @@ - add room members loading indicator -- fix event ID mention regex +- fix main pane appearance when collapsed - fix lag when clicking accounts in the AccountBar with a very long room list - fix: on startup, if a room's last event is a membership change, it won't be visible in timeline no matter what the user config is diff --git a/src/gui/Pages/Chat/Timeline/EventContent.qml b/src/gui/Pages/Chat/Timeline/EventContent.qml index c11418bc..fd1ee084 100644 --- a/src/gui/Pages/Chat/Timeline/EventContent.qml +++ b/src/gui/Pages/Chat/Timeline/EventContent.qml @@ -63,6 +63,8 @@ HRowLayout { 0 readonly property int maxMessageWidth: + contentText.includes("
") ?
+        -1 :
         window.settings.maxMessageCharactersPerLine < 0 ?
         -1 :
         Math.ceil(