From 88d6de8370f833d1f41cd534418cc36d166b242c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Fri, 3 Feb 2023 09:58:33 -0500
Subject: [PATCH] contactmessage: fix width for timestampinfo

If the timestamp is shown on a contact message, the line was not
taking the full width like other messages.

Change-Id: I94a448acb4f7fd6400365445dd912abc5103ea2a
---
 src/app/commoncomponents/ContactMessageDelegate.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/commoncomponents/ContactMessageDelegate.qml b/src/app/commoncomponents/ContactMessageDelegate.qml
index a3e0e40ac..4ed4bee39 100644
--- a/src/app/commoncomponents/ContactMessageDelegate.qml
+++ b/src/app/commoncomponents/ContactMessageDelegate.qml
@@ -39,6 +39,7 @@ Column {
 
     ColumnLayout {
         anchors.horizontalCenter: parent.horizontalCenter
+        width: parent.width
 
         TimestampInfo {
             id:timestampItem
@@ -56,7 +57,7 @@ Column {
             width: childrenRect.width
             height: JamiTheme.contactMessageAvatarSize + 12
             radius: JamiTheme.contactMessageAvatarSize / 2 + 6
-            Layout.alignment: Qt.AlignVCenter
+            Layout.alignment: Qt.AlignCenter
             color: "transparent"
             border.width: 1
             border.color: CurrentConversation.isCoreDialog ? JamiTheme.messageInBgColor : CurrentConversation.color
-- 
GitLab