summary refs log tree commit diff
path: root/resources/qml/delegates/TextMessage.qml
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-12-07 21:39:47 -0500
committerJoseph Donofry <joedonofry@gmail.com>2019-12-07 21:39:47 -0500
commite79ae4ea0996f175ea607e22627a447a4de2a1dc (patch)
treea49d9a6936c22619d619f02e5a654c80f283f5c1 /resources/qml/delegates/TextMessage.qml
parentMerge branch '0.7.0-dev' of ssh://github.com/Nheko-Reborn/nheko into 0.7.0-dev (diff)
parentSimplify scroll logic (diff)
downloadnheko-e79ae4ea0996f175ea607e22627a447a4de2a1dc.tar.xz
Merge branch '0.7.0-dev' of ssh://github.com/Nheko-Reborn/nheko into 0.7.0-dev
Diffstat (limited to 'resources/qml/delegates/TextMessage.qml')
-rw-r--r--resources/qml/delegates/TextMessage.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml
new file mode 100644

index 00000000..f984b32f --- /dev/null +++ b/resources/qml/delegates/TextMessage.qml
@@ -0,0 +1,6 @@ +import ".." + +MatrixText { + text: model.formattedBody.replace("<pre>", "<pre style='white-space: pre-wrap'>") + width: parent ? parent.width : undefined +}