fix(Settings): fix left panel items width (#11048)

This commit is contained in:
Igor Sirotin 2023-06-14 18:07:36 +03:00 committed by GitHub
parent 951fa8b0f4
commit 476db57837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -26,6 +26,7 @@ Column {
id: mainMenuItems id: mainMenuItems
delegate: StatusNavigationListItem { delegate: StatusNavigationListItem {
objectName: itemId + "-MainMenuItem" objectName: itemId + "-MainMenuItem"
width: root.width
itemId: model.subsection itemId: model.subsection
title: model.text title: model.text
asset.name: model.icon asset.name: model.icon
@ -52,6 +53,7 @@ Column {
StatusListSectionHeadline { StatusListSectionHeadline {
text: qsTr("Apps") text: qsTr("Apps")
width: root.width
} }
Repeater { Repeater {
@ -59,6 +61,7 @@ Column {
delegate: StatusNavigationListItem { delegate: StatusNavigationListItem {
id: appsMenuDelegate id: appsMenuDelegate
objectName: itemId + "-AppMenuItem" objectName: itemId + "-AppMenuItem"
width: root.width
itemId: model.subsection itemId: model.subsection
title: model.text title: model.text
asset.name: model.icon asset.name: model.icon
@ -80,13 +83,17 @@ Column {
} }
} }
StatusListSectionHeadline { text: qsTr("Settings") } StatusListSectionHeadline {
text: qsTr("Settings")
width: root.width
}
Repeater { Repeater {
id: settingsMenuItems id: settingsMenuItems
delegate: StatusNavigationListItem { delegate: StatusNavigationListItem {
id: settingsMenuDelegate id: settingsMenuDelegate
objectName: itemId + "-SettingsMenuItem" objectName: itemId + "-SettingsMenuItem"
width: root.width
itemId: model.subsection itemId: model.subsection
title: model.text title: model.text
asset.name: model.icon asset.name: model.icon
@ -96,12 +103,16 @@ Column {
} }
} }
StatusListSectionHeadline { text: qsTr("About & Help") } StatusListSectionHeadline {
text: qsTr("About & Help")
width: root.width
}
Repeater { Repeater {
id: extraMenuItems id: extraMenuItems
delegate: StatusNavigationListItem { delegate: StatusNavigationListItem {
objectName: itemId + "-ExtraMenuItem" objectName: itemId + "-ExtraMenuItem"
width: root.width
itemId: model.subsection itemId: model.subsection
title: model.text title: model.text
asset.name: model.icon asset.name: model.icon