summary refs log tree commit diff
path: root/resources/qml/delegates/FileMessage.qml
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-02-09 21:36:04 +0100
committerMalte E <malte.e@mailbox.org>2022-02-09 21:36:04 +0100
commit0e548b7d390cfbc3c37689ed9dbff0f1e2eab5cc (patch)
tree3a50a2ca0d85dd4c63e7a0463821ea5dcfe14578 /resources/qml/delegates/FileMessage.qml
parentVariable width bubbles (still has binding loop) (diff)
downloadnheko-0e548b7d390cfbc3c37689ed9dbff0f1e2eab5cc.tar.xz
fixed most of the binding loops
Diffstat (limited to 'resources/qml/delegates/FileMessage.qml')
-rw-r--r--resources/qml/delegates/FileMessage.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/delegates/FileMessage.qml b/resources/qml/delegates/FileMessage.qml
index f1fd07b9..2ac2a80a 100644
--- a/resources/qml/delegates/FileMessage.qml
+++ b/resources/qml/delegates/FileMessage.qml
@@ -11,9 +11,11 @@ Item {
     required property string eventId
     required property string filename
     required property string filesize
+    property int maxWidth
 
     height: row.height + 24
-    width: parent.width
+    width: maxWidth
+    implicitWidth: maxWidth
 
     RowLayout {
         id: row