summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-02-09 17:53:02 +0100
committerMalte E <malte.e@mailbox.org>2022-02-09 17:53:02 +0100
commit5db7ec7f037338e45de3dc02767e42484ca292bc (patch)
tree73c58904ae1dacc8833ca6564f20a48379b4f427 /resources/qml/delegates
parentUpdate resources/qml/delegates/Reply.qml (diff)
downloadnheko-5db7ec7f037338e45de3dc02767e42484ca292bc.tar.xz
Variable width bubbles (still has binding loop)
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/Encrypted.qml2
-rw-r--r--resources/qml/delegates/MessageDelegate.qml2
-rw-r--r--resources/qml/delegates/Reply.qml1
3 files changed, 4 insertions, 1 deletions
diff --git a/resources/qml/delegates/Encrypted.qml b/resources/qml/delegates/Encrypted.qml

index 6840c955..d82f027b 100644 --- a/resources/qml/delegates/Encrypted.qml +++ b/resources/qml/delegates/Encrypted.qml
@@ -17,6 +17,7 @@ Rectangle { radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium width: parent.width + implicitWidth: encryptedText.implicitWidth+24+Nheko.paddingMedium*3 // Column doesn't provide a useful implicitWidth, should be replaced by ColumnLayout height: contents.implicitHeight + Nheko.paddingMedium * 2 color: Nheko.colors.alternateBase @@ -39,6 +40,7 @@ Rectangle { Layout.fillWidth: true MatrixText { + id: encryptedText text: { switch (encryptionError) { case Olm.MissingSession: diff --git a/resources/qml/delegates/MessageDelegate.qml b/resources/qml/delegates/MessageDelegate.qml
index 58f12c91..0cec51bc 100644 --- a/resources/qml/delegates/MessageDelegate.qml +++ b/resources/qml/delegates/MessageDelegate.qml
@@ -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 + implicitWidth: (chooser.child && chooser.child.implicitWidth) ? chooser.child.implicitWidth : width required property double proportionalHeight required property int type required property string typeString diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml
index 96fa410e..7c8bccce 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml
@@ -38,6 +38,7 @@ Item { Layout.preferredHeight: replyContainer.height height: replyContainer.height + implicitWidth: visible? colorLine.width+replyContainer.implicitWidth : 0 CursorShape { anchors.fill: parent