diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-08 20:14:13 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-08 20:14:13 +0200 |
commit | 6c6370c83fab2140a81f431b8909746a0b6833dc (patch) | |
tree | 9c0aeaece5cdb461fdbc0863ea276e259b86137b /resources/qml/delegates | |
parent | Reimplement mention highlight and scroll to highlight (diff) | |
download | nheko-6c6370c83fab2140a81f431b8909746a0b6833dc.tar.xz |
Switch to manual polishing of event delegates
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/MessageDelegate.qml | 1 | ||||
-rw-r--r-- | resources/qml/delegates/TextMessage.qml | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/resources/qml/delegates/MessageDelegate.qml b/resources/qml/delegates/MessageDelegate.qml index 44726a63..cd1bdcd4 100644 --- a/resources/qml/delegates/MessageDelegate.qml +++ b/resources/qml/delegates/MessageDelegate.qml @@ -620,7 +620,6 @@ Item { roleValue: MtxEvent.Member ColumnLayout { - width: parent?.width ?? 100 NoticeMessage { body: formatted diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml index 9ef2e6cc..03623924 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml @@ -4,7 +4,7 @@ import ".." import QtQuick.Controls -import QtQuick.Layouts +//import QtQuick.Layouts import im.nheko MatrixText { @@ -41,7 +41,10 @@ MatrixText { }" : "") + // TODO(Nico): Figure out how to support mobile "</style> " + formatted.replace(/<del>/g, "<s>").replace(/<\/del>/g, "</s>").replace(/<strike>/g, "<s>").replace(/<\/strike>/g, "</s>") - Layout.maximumHeight: !keepFullText ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : implicitHeight + //Layout.maximumHeight: !keepFullText ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : implicitHeight + + //EventDelegateChooser.fillWidth: true + clip: !keepFullText selectByMouse: !Settings.mobileMode && !isReply enabled: !Settings.mobileMode && !isReply |