fix(Communities/Settings): Cropped bottom panel in Community Overview

Footer buttons anchored to `leftPanel` bottom.
Improved list view alignment.

Fixes #7322
This commit is contained in:
Noelia 2022-09-27 14:16:03 +02:00 committed by Noelia
parent d45230a6f7
commit 751d61df8b
1 changed files with 66 additions and 53 deletions

View File

@ -57,15 +57,20 @@ StatusSectionLayout {
signal backToCommunityClicked
signal openLegacyPopupClicked // TODO: remove me when migration to new settings is done
leftPanel: ColumnLayout {
leftPanel: Item {
anchors.fill: parent
ColumnLayout {
anchors {
fill: parent
margins: 8
top: parent.top
bottom: footer.top
topMargin: 16
bottomMargin: 16
horizontalCenter: parent.horizontalCenter
}
width: parent.width - 16
spacing: 16
clip: true
StatusNavigationPanelHeadline {
Layout.alignment: Qt.AlignHCenter
@ -76,8 +81,7 @@ StatusSectionLayout {
id: listView
Layout.fillWidth: true
implicitHeight: contentItem.childrenRect.height
Layout.fillHeight: true
model: root.settingsMenuModel
delegate: StatusNavigationListItem {
width: listView.width
@ -87,11 +91,19 @@ StatusSectionLayout {
onClicked: d.currentIndex = index
}
}
Item {
Layout.fillHeight: true
}
// TODO: remove me when migration to new settings is done. Only keep back button and anchor to it.
ColumnLayout {
id: footer
anchors {
bottom: parent.bottom
bottomMargin: 16
}
width: parent.width
spacing: 16
// TODO: remove me when migration to new settings is done
StatusBaseText {
Layout.alignment: Qt.AlignHCenter
@ -123,6 +135,7 @@ StatusSectionLayout {
}
}
}
}
centerPanel: Loader {
anchors.fill: parent