From 24775f2f51a1c901152994b3927eb36402a3816b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Wed, 27 Jul 2022 20:32:47 +0200 Subject: [PATCH] fix(ContactsListPanel/ContactsView): items have their right side options hidden Fixes: #6669 --- ui/app/AppLayouts/Profile/panels/ContactsListPanel.qml | 6 ++---- ui/app/AppLayouts/Profile/views/ContactsView.qml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ui/app/AppLayouts/Profile/panels/ContactsListPanel.qml b/ui/app/AppLayouts/Profile/panels/ContactsListPanel.qml index cb8c149fb0..e00a5a5bcd 100644 --- a/ui/app/AppLayouts/Profile/panels/ContactsListPanel.qml +++ b/ui/app/AppLayouts/Profile/panels/ContactsListPanel.qml @@ -98,9 +98,7 @@ Item { anchors.right: parent.right anchors.bottom: parent.bottom interactive: false - ScrollBar.vertical: ScrollBar { - policy: contactListRoot.scrollbarOn ? ScrollBar.AlwaysOn : ScrollBar.AsNeeded - } + ScrollBar.vertical.policy: contactListRoot.scrollbarOn ? ScrollBar.AlwaysOn : ScrollBar.AsNeeded model: delegateModel } @@ -109,7 +107,7 @@ Item { ContactPanel { id: panelDelegate - width: (parent.width-10) + width: ListView.view.width name: model.displayName publicKey: model.pubKey iconSource: model.icon diff --git a/ui/app/AppLayouts/Profile/views/ContactsView.qml b/ui/app/AppLayouts/Profile/views/ContactsView.qml index 72ec527e95..2664e61ba7 100644 --- a/ui/app/AppLayouts/Profile/views/ContactsView.qml +++ b/ui/app/AppLayouts/Profile/views/ContactsView.qml @@ -20,7 +20,7 @@ import "../popups" SettingsContentBase { id: root - onWidthChanged: { contentItem.width = width; } + onWidthChanged: { contentItem.width = contentWidth; } onHeightChanged: { contentItem.height = height; } property ContactsStore contactsStore