From 6e93b4ec4194f3db077d1a75382964694dc19345 Mon Sep 17 00:00:00 2001 From: PavelS Date: Mon, 22 Aug 2022 10:35:23 +0300 Subject: [PATCH] fix(CreateChatView): adjust start chat page (#863) Add fix from https://github.com/status-im/status-desktop/pull/7077 to demoapp --- sandbox/demoapp/CreateChatView.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sandbox/demoapp/CreateChatView.qml b/sandbox/demoapp/CreateChatView.qml index 9be40a47..cdc5e175 100644 --- a/sandbox/demoapp/CreateChatView.qml +++ b/sandbox/demoapp/CreateChatView.qml @@ -98,16 +98,15 @@ Page { anchors.fill: parent StatusBaseText { - anchors.left: parent.left - anchors.leftMargin: 252 - anchors.right: parent.right - anchors.rightMargin: 252 + width: Math.min(553, parent.width - 32) + anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter anchors.verticalCenterOffset: -(headerRow.height/2) horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter visible: contactsModel.count === 0 wrapMode: Text.WordWrap + font.pixelSize: 15 color: Theme.palette.baseColor1 text: qsTr("You can only send direct messages to your Contacts.\n Send a contact request to the person you would like to chat with, you will be able to chat with them once they have accepted your contact request.")