mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-26 22:39:26 +00:00
fix(ContactsListAndSearch): ensure component doesn't depend on parent
Also add default `height` as it otherwise breaks UI in other places.
This commit is contained in:
parent
959c21990c
commit
c0da840a87
@ -52,6 +52,7 @@ Item {
|
||||
id: contactFieldAndList
|
||||
anchors.top: sep.bottom
|
||||
anchors.topMargin: Style.current.smallPadding
|
||||
width: parent.width
|
||||
showCheckbox: true
|
||||
hideCommunityMembers: true
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ ModalPopup {
|
||||
id: contactFieldAndList
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
width: parent.width
|
||||
addContactEnabled: false
|
||||
onUserClicked: function (isContact, pubKey, ensName) {
|
||||
chatsModel.channelView.joinPrivateChat(pubKey, Utils.isChatKey(pubKey) ? "" : ensName);
|
||||
|
@ -46,6 +46,7 @@ Item {
|
||||
id: contactFieldAndList
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
width: parent.width
|
||||
showContactList: false
|
||||
onUserClicked: function (isContact, pubKey, ensName, address) {
|
||||
chatKey.text = address
|
||||
|
@ -22,7 +22,7 @@ Item {
|
||||
property bool addContactEnabled: true
|
||||
|
||||
id: root
|
||||
width: parent.width
|
||||
height: childrenRect.height + 24
|
||||
|
||||
property var resolveENS: Backpressure.debounce(root, 500, function (ensName) {
|
||||
noContactsRect.visible = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user