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:
parent
d45230a6f7
commit
751d61df8b
|
@ -57,15 +57,20 @@ StatusSectionLayout {
|
||||||
signal backToCommunityClicked
|
signal backToCommunityClicked
|
||||||
signal openLegacyPopupClicked // TODO: remove me when migration to new settings is done
|
signal openLegacyPopupClicked // TODO: remove me when migration to new settings is done
|
||||||
|
|
||||||
leftPanel: ColumnLayout {
|
leftPanel: Item {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
top: parent.top
|
||||||
margins: 8
|
bottom: footer.top
|
||||||
topMargin: 16
|
topMargin: 16
|
||||||
bottomMargin: 16
|
bottomMargin: 16
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
width: parent.width - 16
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
clip: true
|
||||||
|
|
||||||
StatusNavigationPanelHeadline {
|
StatusNavigationPanelHeadline {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
@ -76,8 +81,7 @@ StatusSectionLayout {
|
||||||
id: listView
|
id: listView
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
implicitHeight: contentItem.childrenRect.height
|
Layout.fillHeight: true
|
||||||
|
|
||||||
model: root.settingsMenuModel
|
model: root.settingsMenuModel
|
||||||
delegate: StatusNavigationListItem {
|
delegate: StatusNavigationListItem {
|
||||||
width: listView.width
|
width: listView.width
|
||||||
|
@ -87,11 +91,19 @@ StatusSectionLayout {
|
||||||
onClicked: d.currentIndex = index
|
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
|
// TODO: remove me when migration to new settings is done
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
@ -123,6 +135,7 @@ StatusSectionLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
centerPanel: Loader {
|
centerPanel: Loader {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
Loading…
Reference in New Issue