summary refs log tree commit diff
path: root/resources/qml/delegates/TextMessage.qml
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-10-08 21:12:26 +0200
committerGitHub <noreply@github.com>2020-10-08 21:12:26 +0200
commita9c0684a5a83c35ba1e43cf007595f3c8c97e61b (patch)
treea4797860c06eeff4db1154132a084dccc9a963d9 /resources/qml/delegates/TextMessage.qml
parentMerge pull request #270 from Chethan2k1/device-verification (diff)
parentLint qml with qml-format (diff)
downloadnheko-a9c0684a5a83c35ba1e43cf007595f3c8c97e61b.tar.xz
Merge pull request #299 from Nheko-Reborn/qml-linting
Lint qml with qml-format
Diffstat (limited to 'resources/qml/delegates/TextMessage.qml')
-rw-r--r--resources/qml/delegates/TextMessage.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml

index 99ff9329..69f2f0e3 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -1,12 +1,12 @@ import ".." - import im.nheko 1.0 MatrixText { - property string formatted: model.data.formattedBody - text: "<style type=\"text/css\">a { color:"+colors.link+";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap'>") - width: parent ? parent.width : undefined - height: isReply ? Math.round(Math.min(timelineRoot.height / 8, implicitHeight)) : undefined - clip: true - font.pointSize: (Settings.enlargeEmojiOnlyMessages && model.data.isOnlyEmoji > 0 && model.data.isOnlyEmoji < 4) ? Settings.fontSize * 3 : Settings.fontSize + property string formatted: model.data.formattedBody + + text: "<style type=\"text/css\">a { color:" + colors.link + ";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap'>") + width: parent ? parent.width : undefined + height: isReply ? Math.round(Math.min(timelineRoot.height / 8, implicitHeight)) : undefined + clip: true + font.pointSize: (Settings.enlargeEmojiOnlyMessages && model.data.isOnlyEmoji > 0 && model.data.isOnlyEmoji < 4) ? Settings.fontSize * 3 : Settings.fontSize }