diff options
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 |