From 97688763f60ee7df7189091ea612fc936b4f3c12 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 14 Dec 2020 02:21:58 +0100 Subject: [PATCH] Background color for code and don't collapse space in timeline --- resources/qml/Avatar.qml | 13 +++++++------ resources/qml/delegates/TextMessage.qml | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/resources/qml/Avatar.qml b/resources/qml/Avatar.qml index 076e84c0..aa873ffe 100644 --- a/resources/qml/Avatar.qml +++ b/resources/qml/Avatar.qml @@ -38,6 +38,13 @@ Rectangle { sourceSize.height: avatar.height layer.enabled: true + MouseArea { + id: mouseArea + + anchors.fill: parent + onClicked: TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id) + } + layer.effect: OpacityMask { maskSource: Rectangle { @@ -49,12 +56,6 @@ Rectangle { } - MouseArea { - id: mouseArea - - anchors.fill: parent - onClicked: TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id) - } } Rectangle { diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml index 8a1c116e..3ff771dc 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml @@ -4,7 +4,7 @@ import im.nheko 1.0 MatrixText { property string formatted: model.data.formattedBody - text: "" + formatted.replace("
", "
")
+    text: "" + formatted.replace("
", "
") + ""
     width: parent ? parent.width : undefined
     height: isReply ? Math.round(Math.min(timelineRoot.height / 8, implicitHeight)) : undefined
     clip: isReply