From cbb6cd70a8a2cb48ac8b94f298ecb292fdb4ff38 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Fri, 29 Jul 2022 11:00:37 +0300 Subject: [PATCH] fix(CommunityIntroMessageInput): input height was set to 0 Closes #6697 --- .../Chat/controls/community/CommunityIntroMessageInput.qml | 6 ++---- .../Chat/controls/community/CommunityOutroMessageInput.qml | 2 +- .../Chat/panels/communities/CommunityEditSettingsPanel.qml | 2 ++ .../CommunitiesPortal/popups/CreateCommunityPopup.qml | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/app/AppLayouts/Chat/controls/community/CommunityIntroMessageInput.qml b/ui/app/AppLayouts/Chat/controls/community/CommunityIntroMessageInput.qml index efb4d543ef..e188c76c28 100644 --- a/ui/app/AppLayouts/Chat/controls/community/CommunityIntroMessageInput.qml +++ b/ui/app/AppLayouts/Chat/controls/community/CommunityIntroMessageInput.qml @@ -15,11 +15,9 @@ StatusInput { label: qsTr("Community introduction and rules") charLimit: 1400 - input.multiline: true - minimumHeight: 400 - maximumHeight: 400 + multiline: true - input.placeholder.text: qsTr("What new members will read before joining (eg. community rules, welcome message, etc.). Members will need to tick a check box agreeing to these rules before they are allowed to join your community.") + placeholderText: qsTr("What new members will read before joining (eg. community rules, welcome message, etc.). Members will need to tick a check box agreeing to these rules before they are allowed to join your community.") input.placeholder.wrapMode: Text.WordWrap input.verticalAlignment: TextEdit.AlignTop diff --git a/ui/app/AppLayouts/Chat/controls/community/CommunityOutroMessageInput.qml b/ui/app/AppLayouts/Chat/controls/community/CommunityOutroMessageInput.qml index c36e2dd9cf..146c3ac7f9 100644 --- a/ui/app/AppLayouts/Chat/controls/community/CommunityOutroMessageInput.qml +++ b/ui/app/AppLayouts/Chat/controls/community/CommunityOutroMessageInput.qml @@ -15,7 +15,7 @@ StatusInput { label: qsTr("Leaving community message") charLimit: 80 - input.placeholder.text: qsTr("The message a member will see when they leave your community") + placeholderText: qsTr("The message a member will see when they leave your community") input.placeholder.wrapMode: Text.WordWrap validators: [ diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityEditSettingsPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityEditSettingsPanel.qml index 97529bb9b7..b7549dfe40 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityEditSettingsPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityEditSettingsPanel.qml @@ -142,6 +142,8 @@ StatusScrollView { CommunityIntroMessageInput { id: introMessageTextInput Layout.fillWidth: true + minimumHeight: 108 + maximumHeight: 108 } CommunityOutroMessageInput { diff --git a/ui/app/AppLayouts/CommunitiesPortal/popups/CreateCommunityPopup.qml b/ui/app/AppLayouts/CommunitiesPortal/popups/CreateCommunityPopup.qml index 6718e3221b..c1db86704e 100644 --- a/ui/app/AppLayouts/CommunitiesPortal/popups/CreateCommunityPopup.qml +++ b/ui/app/AppLayouts/CommunitiesPortal/popups/CreateCommunityPopup.qml @@ -128,8 +128,7 @@ StatusStackModal { }, ColumnLayout { id: introOutroMessageView - spacing: 12 - + spacing: 11 CommunityIntroMessageInput { id: introMessageInput input.edit.objectName: "createCommunityIntroMessageInput" @@ -137,7 +136,8 @@ StatusStackModal { Layout.fillWidth: true Layout.fillHeight: true - maximumHeight: 0 + minimumHeight: height + maximumHeight: (height - Style.current.xlPadding) } CommunityOutroMessageInput {