summary refs log tree commit diff
path: root/resources/qml/delegates/Reply.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-08-25 21:03:05 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-08-25 21:03:05 +0200
commit55107ed0ce6d457b82fa2e64878712198a6c0f1f (patch)
tree77e032526bf6ebb4ea188acff426358e779a661e /resources/qml/delegates/Reply.qml
parentReimplement reply delegate by moving out the timeline event without layout (diff)
downloadnheko-55107ed0ce6d457b82fa2e64878712198a6c0f1f.tar.xz
Fix some reply layouting loops
Diffstat (limited to 'resources/qml/delegates/Reply.qml')
-rw-r--r--resources/qml/delegates/Reply.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml
index 55a376f7..52cc982d 100644
--- a/resources/qml/delegates/Reply.qml
+++ b/resources/qml/delegates/Reply.qml
@@ -24,6 +24,7 @@ AbstractButton {
     property string userName: eventId ? room.dataById(eventId, Room.UserName, "") : ""
     implicitHeight: replyContainer.implicitHeight
     implicitWidth: replyContainer.implicitWidth
+    property int maxWidth
 
     NhekoCursorShape {
         anchors.fill: parent
@@ -48,14 +49,11 @@ AbstractButton {
         eventId: r.eventId
         replyTo: ""
 
-        width: parent.width
-        height: replyContainer.implicitHeight
-
         //height: replyContainer.implicitHeight
         data: GridLayout {
             id: replyContainer
 
-            width: parent.width
+            width: r.maxWidth
             columns: 2
             rows: 2
             columnSpacing: Nheko.paddingMedium