From 80bbee1434be319cf0cbf9f353573df5848bc505 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 16:48:29 -0400 Subject: [PATCH] Center-align profile status msg if only one line --- src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml index 34d1c7d6..f9d379f9 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml @@ -148,6 +148,7 @@ HListView { wrapMode: HLabel.Wrap text: member.status_msg.trim() visible: text !== "" + horizontalAlignment: lineCount > 1 ? Qt.AlignLeft : Qt.AlignHCenter Layout.fillWidth: true Layout.bottomMargin: theme.spacing