ui(Communities): remove unnecessary dividers in modals

There was a change in StatusQ that introduced dividers for modal footers
and headers, so we don't need to put them in the content manually anymore.

This commit removes the no longer needed ones.
This commit is contained in:
Pascal Precht 2021-07-16 09:53:41 +02:00 committed by Iuri Matias
parent bdda052968
commit 9795890544
6 changed files with 6 additions and 20 deletions

@ -1 +1 @@
Subproject commit 18dbaadd4397395cfd41319cdbc49a5d0fcdbaa1 Subproject commit 28ff7b267beaf864f25bcb89b4c19fc071ef3a10

View File

@ -101,6 +101,7 @@ StatusModal {
leftButtons: [ leftButtons: [
StatusRoundButton { StatusRoundButton {
id: backButton
icon.name: "arrow-right" icon.name: "arrow-right"
icon.height: 16 icon.height: 16
icon.width: 20 icon.width: 20
@ -115,8 +116,7 @@ StatusModal {
rightButtons: [ rightButtons: [
StatusButton { StatusButton {
//% "Invite" text: qsTr("Invite")
text: qsTrId("community-invite-title")
visible: popup.contentComponent.depth > 2 visible: popup.contentComponent.depth > 2
height: !visible ? 0 : implicitHeight height: !visible ? 0 : implicitHeight
enabled: popup.contentComponent.currentItem.contactListSearch !== undefined && popup.contentComponent.currentItem.contactListSearch.pubKeys.length > 0 enabled: popup.contentComponent.currentItem.contactListSearch !== undefined && popup.contentComponent.currentItem.contactListSearch.pubKeys.length > 0

View File

@ -28,10 +28,6 @@ Column {
contactFieldAndList.successMessage = qsTrId("invite-successfully-sent") contactFieldAndList.successMessage = qsTrId("invite-successfully-sent")
} }
StatusModalDivider {
bottomPadding: 8
}
StatusDescriptionListItem { StatusDescriptionListItem {
//% "Share community" //% "Share community"
title: qsTrId("share-community") title: qsTrId("share-community")

View File

@ -27,8 +27,6 @@ Item {
id: memberSearchAndInviteButton id: memberSearchAndInviteButton
StatusModalDivider {}
Item { Item {
width: parent.width width: parent.width
height: 76 height: 76
@ -87,6 +85,7 @@ Item {
anchors.top: memberSearchAndInviteButton.bottom anchors.top: memberSearchAndInviteButton.bottom
contentHeight: Math.max(300, memberListColumn.height) contentHeight: Math.max(300, memberListColumn.height)
bottomPadding: 8
clip: true clip: true
Item { Item {
@ -206,9 +205,4 @@ Item {
} }
} }
} }
StatusModalDivider {
anchors.top: scrollView.bottom
topPadding: 8
}
} }

View File

@ -23,12 +23,8 @@ Column {
signal transferOwnershipButtonClicked() signal transferOwnershipButtonClicked()
signal leaveButtonClicked() signal leaveButtonClicked()
StatusModalDivider {
bottomPadding: 8
}
Item { Item {
height: 46 height: Math.max(46, communityDescription.height + 16)
width: parent.width width: parent.width
StatusBaseText { StatusBaseText {
id: communityDescription id: communityDescription

@ -1 +1 @@
Subproject commit a1da1f403d9034f0f09582c832863c902751e9fb Subproject commit e7694f16ceccd7c98ecb6870263025018b7d37b3