From 8fe3b03b8f8b1e016a23ca5b0ddc2a16d71aa4f6 Mon Sep 17 00:00:00 2001 From: Nauris Linde Date: Sat, 2 Nov 2024 12:53:39 +0000 Subject: [PATCH] fix: chat message position --- src/qml/ChatView.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qml/ChatView.qml b/src/qml/ChatView.qml index 1d9d46d..fb8d03e 100644 --- a/src/qml/ChatView.qml +++ b/src/qml/ChatView.qml @@ -125,9 +125,13 @@ RowLayout { clip: true model: chat.getThread(threadList.currentIndex) delegate: Rectangle { - x: model.isUser ? 0 : chatThread.width - width width: Math.min(messageText.implicitWidth + 24, (chatThread.width * 0.8)) height: messageText.implicitHeight + 20 + anchors { + left: model.isUser ? undefined : parent.left + right: model.isUser ? parent.right : undefined + margins: 10 + } gradient: Gradient { orientation: Gradient.Horizontal GradientStop {