summary refs log tree commit diff
path: root/resources/qml/delegates/TextMessage.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-14 15:23:32 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-14 15:23:40 +0200
commit39a43ad4abc84733b6e8a5a244f1055048ce115c (patch)
tree89110bb753926ed22959f6f992ae66c97ddb45cc /resources/qml/delegates/TextMessage.qml
parentMove global avatarSize property (diff)
downloadnheko-39a43ad4abc84733b6e8a5a244f1055048ce115c.tar.xz
Reorganize TimelineView to prepare porting the room list
Diffstat (limited to 'resources/qml/delegates/TextMessage.qml')
-rw-r--r--resources/qml/delegates/TextMessage.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml

index 810ee3d4..ae622480 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -11,7 +11,7 @@ MatrixText { text: "<style type=\"text/css\">a { color:" + Nheko.colors.link + ";}\ncode { background-color: " + Nheko.colors.alternateBase + ";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap; background-color: " + Nheko.colors.alternateBase + "'>") width: parent ? parent.width : undefined - height: isReply ? Math.round(Math.min(timelineRoot.height / 8, implicitHeight)) : undefined + height: isReply ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : undefined clip: isReply selectByMouse: !Settings.mobileMode && !isReply font.pointSize: (Settings.enlargeEmojiOnlyMessages && model.data.isOnlyEmoji > 0 && model.data.isOnlyEmoji < 4) ? Settings.fontSize * 3 : Settings.fontSize