From eaed074957cb53b6caf9a018a3d63449ef8af25e Mon Sep 17 00:00:00 2001 From: PavelS Date: Mon, 12 Sep 2022 12:54:07 +0300 Subject: [PATCH] fix(@desktop/settings): adjust contacts settings Fixed #7296 --- ui/app/AppLayouts/Profile/views/ContactsView.qml | 10 ++++++++-- .../AppLayouts/Profile/views/SettingsContentBase.qml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Profile/views/ContactsView.qml b/ui/app/AppLayouts/Profile/views/ContactsView.qml index c3a89536f3..461e29c5bc 100644 --- a/ui/app/AppLayouts/Profile/views/ContactsView.qml +++ b/ui/app/AppLayouts/Profile/views/ContactsView.qml @@ -30,6 +30,8 @@ SettingsContentBase { headerComponents: [ StatusButton { + implicitHeight: 38 + size: StatusBaseButton.Size.Normal text: qsTr("Send contact request to chat key") onClicked: { sendContactRequest.open() @@ -65,6 +67,7 @@ SettingsContentBase { SearchBox { id: searchBox anchors.left: parent.left + anchors.leftMargin: Style.current.padding anchors.right: parent.right placeholderText: qsTr("Search by a display name or chat key") } @@ -74,10 +77,11 @@ SettingsContentBase { anchors.left: parent.left anchors.right: parent.right anchors.top: searchBox.bottom - anchors.topMargin: (2 * Style.current.padding) - + anchors.topMargin: Style.current.padding + StatusTabButton { id: contactsBtn + leftPadding: Style.current.padding width: implicitWidth text: qsTr("Contacts") } @@ -110,10 +114,12 @@ SettingsContentBase { anchors.left: parent.left anchors.right: parent.right anchors.top: contactsTabBar.bottom + anchors.topMargin: Style.current.smallPadding anchors.bottom: parent.bottom currentIndex: contactsTabBar.currentIndex // CONTACTS Column { + spacing: Style.current.padding ContactsListPanel { id: verifiedContacts width: parent.width diff --git a/ui/app/AppLayouts/Profile/views/SettingsContentBase.qml b/ui/app/AppLayouts/Profile/views/SettingsContentBase.qml index d663945a17..752b51b498 100644 --- a/ui/app/AppLayouts/Profile/views/SettingsContentBase.qml +++ b/ui/app/AppLayouts/Profile/views/SettingsContentBase.qml @@ -82,7 +82,7 @@ Item { anchors.left: parent.left anchors.top: topHeader.bottom anchors.leftMargin: Style.current.padding - width: root.contentWidth - 2 * Style.current.padding + width: root.contentWidth - Style.current.padding height: d.titleRowHeight visible: root.sectionTitle !== ""