fix(communities): bug: "Invite successfully sent" shown prematurely on Community invite popup
The issue actually appeared because of ignoring message label when we calculated the top margin offset, fixed now. Fixes: #2449
This commit is contained in:
parent
10601710e9
commit
ba01d6ad75
|
@ -50,6 +50,7 @@ Item {
|
||||||
//% "Enter ENS username or chat key"
|
//% "Enter ENS username or chat key"
|
||||||
placeholderText: qsTrId("enter-contact-code")
|
placeholderText: qsTrId("enter-contact-code")
|
||||||
Keys.onReleased: {
|
Keys.onReleased: {
|
||||||
|
successMessage = ""
|
||||||
searchResults.pubKey = ""
|
searchResults.pubKey = ""
|
||||||
if (!validate()) {
|
if (!validate()) {
|
||||||
searchResults.showProfileNotFoundMessage = false
|
searchResults.showProfileNotFoundMessage = false
|
||||||
|
@ -143,8 +144,8 @@ Item {
|
||||||
id: existingContacts
|
id: existingContacts
|
||||||
visible: showContactList
|
visible: showContactList
|
||||||
hideCommunityMembers: root.hideCommunityMembers
|
hideCommunityMembers: root.hideCommunityMembers
|
||||||
anchors.topMargin: this.height > 0 ? Style.current.xlPadding : 0
|
anchors.topMargin: this.height > 0 ? Style.current.halfPadding : 0
|
||||||
anchors.top: chatKey.bottom
|
anchors.top: message.visible? message.bottom : chatKey.bottom
|
||||||
showCheckbox: root.showCheckbox
|
showCheckbox: root.showCheckbox
|
||||||
filterText: chatKey.text
|
filterText: chatKey.text
|
||||||
pubKeys: root.pubKeys
|
pubKeys: root.pubKeys
|
||||||
|
@ -168,8 +169,9 @@ Item {
|
||||||
|
|
||||||
SearchResults {
|
SearchResults {
|
||||||
id: searchResults
|
id: searchResults
|
||||||
anchors.top: existingContacts.visible ? existingContacts.bottom : chatKey.bottom
|
anchors.top: existingContacts.visible ? existingContacts.bottom :
|
||||||
anchors.topMargin: Style.current.padding
|
message.visible? message.bottom : chatKey.bottom
|
||||||
|
anchors.topMargin: Style.current.halfPadding
|
||||||
hasExistingContacts: existingContacts.visible
|
hasExistingContacts: existingContacts.visible
|
||||||
loading: false
|
loading: false
|
||||||
width: searchResultsWidth > 0 ? searchResultsWidth : parent.width
|
width: searchResultsWidth > 0 ? searchResultsWidth : parent.width
|
||||||
|
|
Loading…
Reference in New Issue