fix(@desktop/comminities) adjust Community members tab

Fixes #6786
This commit is contained in:
PavelS 2022-08-08 18:56:57 +03:00 committed by PavelS
parent 1613605296
commit 1ab101c8b9
5 changed files with 14 additions and 8 deletions

@ -1 +1 @@
Subproject commit e5ddf28f02c9bc506c2f02b4528ddfee837c27fc Subproject commit 98aa6a4b27eb44adc7a12114e5478a1fef718935

View File

@ -65,7 +65,7 @@ Item {
} }
StatusBaseText { StatusBaseText {
Layout.leftMargin: 32 Layout.leftMargin: 36
text: root.title text: root.title
color: Theme.palette.directColor1 color: Theme.palette.directColor1

View File

@ -32,11 +32,12 @@ SettingsPageLayout {
title: qsTr("Members") title: qsTr("Members")
content: ColumnLayout { content: ColumnLayout {
spacing: 8 spacing: 19
StatusTabBar { StatusTabBar {
id: membersTabBar id: membersTabBar
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 5
StatusTabButton { StatusTabButton {
id: allMembersBtn id: allMembersBtn

View File

@ -33,11 +33,12 @@ Item {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
spacing: 25 spacing: 30
StatusInput { StatusInput {
id: memberSearch id: memberSearch
Layout.preferredWidth: 350 Layout.preferredWidth: 350
Layout.leftMargin: 12
maximumHeight: 36 maximumHeight: 36
topPadding: 0 topPadding: 0
bottomPadding: 0 bottomPadding: 0
@ -55,6 +56,7 @@ Item {
model: root.model model: root.model
clip: true clip: true
spacing: 15
delegate: StatusMemberListItem { delegate: StatusMemberListItem {
id: memberItem id: memberItem
@ -65,6 +67,7 @@ Item {
statusListItemComponentsSlot.spacing: 16 statusListItemComponentsSlot.spacing: 16
rightPadding: 80 rightPadding: 80
leftPadding: 12
components: [ components: [
StatusButton { StatusButton {
@ -105,10 +108,10 @@ Item {
icon.color: Theme.palette.userCustomizationColors[Utils.colorIdForPubkey(model.pubKey)] // FIXME: use model.colorId icon.color: Theme.palette.userCustomizationColors[Utils.colorIdForPubkey(model.pubKey)] // FIXME: use model.colorId
image.source: model.icon image.source: model.icon
image.isIdenticon: false image.isIdenticon: false
image.width: 36 image.width: 40
image.height: 36 image.height: 40
icon.height: 36 icon.height: 40
icon.width: 36 icon.width: 40
ringSettings.ringSpecModel: Utils.getColorHashAsJson(model.pubKey) ringSettings.ringSpecModel: Utils.getColorHashAsJson(model.pubKey)
statusListItemIcon.badge.visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers) statusListItemIcon.badge.visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers)

View File

@ -121,6 +121,8 @@ StatusAppTwoPanelLayout {
rightPanel: Loader { rightPanel: Loader {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: 28
anchors.topMargin: 23
anchors.margins: 16 anchors.margins: 16
active: root.community active: root.community