summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-03-12 22:34:16 +0100
committerMalte E <malte.e@mailbox.org>2022-03-12 22:34:16 +0100
commit8a78920b8804f26faea7a598cb812e84426b0f2e (patch)
tree54ef044b6a735479e287257405756d7598f7eb78
parent8309ad2f83dc229708439d6419086b6c16082658 (diff)
allow bubbles to be not larger than necessary
-rw-r--r--resources/qml/TimelineRow.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml
index 97e2bcf0..a3040412 100644
--- a/resources/qml/TimelineRow.qml
+++ b/resources/qml/TimelineRow.qml
@@ -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