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