Skip to content
Snippets Groups Projects
Commit 3c8c02e8 authored by Malte E's avatar Malte E
Browse files

Revert removal of width and height in TextMessage and implicitWidth in MessageDelegate

parent 04b47d68
No related branches found
No related tags found
No related merge requests found
Pipeline #2593 passed
......@@ -13,7 +13,7 @@ Item {
required property bool isReply
property alias child: chooser.child
// property real implicitWidth: (chooser.child && chooser.child.implicitWidth) ? chooser.child.implicitWidth : width
property real implicitWidth: (chooser.child && chooser.child.implicitWidth) ? chooser.child.implicitWidth : width
required property double proportionalHeight
required property int type
required property string typeString
......
......@@ -33,8 +33,8 @@ MatrixText {
blockquote { margin-left: 1em; }
</style>
" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap; background-color: " + Nheko.colors.alternateBase + "'>").replace("<del>", "<s>").replace("</del>", "</s>").replace("<strike>", "<s>").replace("</strike>", "</s>")
// width: parent.width
//height: isReply ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : undefined
width: parent.width
height: isReply ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : undefined
clip: isReply
selectByMouse: !Settings.mobileMode && !isReply
font.pointSize: (Settings.enlargeEmojiOnlyMessages && isOnlyEmoji > 0 && isOnlyEmoji < 4) ? Settings.fontSize * 3 : Settings.fontSize
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment