fix(@desktop/settings): adjust contacts settings

Fixed #7296
This commit is contained in:
PavelS 2022-09-12 12:54:07 +03:00 committed by PavelS
parent 326e9e09a5
commit eaed074957
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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 !== ""