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

allow bubbles to be not larger than necessary

parent 8309ad2f
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ Item {
anchors.right: isStateEvent? undefined: (bubbleOnRight? parent.right : undefined)
anchors.horizontalCenter: isStateEvent? parent.horizontalCenter : undefined
property int maxWidth: parent.width-anchors.leftMargin-anchors.rightMargin
width: Settings.bubbles? Math.min(maxWidth,implicitWidth+metadata.width+12) : maxWidth
width: Settings.bubbles? Math.min(maxWidth,Math.max(reply.implicitWidth+8,contentItem.implicitWidth+metadata.width+20)) : maxWidth
leftPadding: 4
rightPadding: (Settings.bubbles && !isStateEvent)? 4: 2
topPadding: (Settings.bubbles && !isStateEvent)? 4: 2
......@@ -142,7 +142,6 @@ Item {
Layout.column: 0
Layout.fillWidth: true
Layout.preferredHeight: height
Layout.minimumWidth: 80
id: contentItem
blurhash: r.blurhash
......
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