From 7fca14bce1c728959146d584e20a1cc0900aa84f Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 12 May 2023 17:13:40 +0000 Subject: [PATCH] Fix Chatbar text margin Make sure that the padding in the chatbar textarea accounts for the x offset --- src/qml/Component/ChatBox/ChatBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Component/ChatBox/ChatBar.qml b/src/qml/Component/ChatBox/ChatBar.qml index 7914b5422..0f6b28aed 100644 --- a/src/qml/Component/ChatBox/ChatBar.qml +++ b/src/qml/Component/ChatBox/ChatBar.qml @@ -124,7 +124,7 @@ QQC2.Control { topPadding: Kirigami.Units.largeSpacing + (paneLoader.visible ? paneLoader.height : 0) bottomPadding: Kirigami.Units.largeSpacing leftPadding: LayoutMirroring.enabled ? actionsRow.width : Kirigami.Units.largeSpacing - rightPadding: LayoutMirroring.enabled ? Kirigami.Units.largeSpacing : actionsRow.width + rightPadding: LayoutMirroring.enabled ? Kirigami.Units.largeSpacing : actionsRow.width + x * 2 + Kirigami.Units.largeSpacing * 2 placeholderText: readOnly ? i18n("This room is encrypted. Build libQuotient with encryption enabled to send encrypted messages.") : currentRoom.usesEncryption ? i18n("Send an encrypted message…") : currentRoom.chatBoxAttachmentPath.length > 0 ? i18n("Set an attachment caption...") : i18n("Send a message…") verticalAlignment: TextEdit.AlignVCenter