SidePanel: even more robust with sizing forced everywhere
This commit is contained in:
parent
4d6361dfe5
commit
a8b312f3a7
6 changed files with 13 additions and 21 deletions
|
|
@ -11,7 +11,7 @@ NPanel {
|
|||
id: root
|
||||
|
||||
preferredWidth: 460
|
||||
preferredHeight: 730
|
||||
preferredHeight: 734
|
||||
|
||||
panelContent: Item {
|
||||
id: content
|
||||
|
|
@ -29,10 +29,12 @@ NPanel {
|
|||
// Cards (consistent inter-card spacing via ColumnLayout spacing)
|
||||
ProfileCard {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Math.max(64 * scaling)
|
||||
}
|
||||
|
||||
WeatherCard {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Math.max(220 * scaling)
|
||||
}
|
||||
|
||||
// Middle section: media + stats column
|
||||
|
|
@ -49,6 +51,7 @@ NPanel {
|
|||
|
||||
// System monitors combined in one card
|
||||
SystemMonitorCard {
|
||||
Layout.preferredWidth: Style.baseWidgetSize * 2.625 * scaling
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
|
|
@ -61,14 +64,16 @@ NPanel {
|
|||
|
||||
// Power Profiles switcher
|
||||
PowerProfilesCard {
|
||||
spacing: content.cardSpacing
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
spacing: content.cardSpacing
|
||||
}
|
||||
|
||||
// Utilities buttons
|
||||
UtilitiesCard {
|
||||
spacing: content.cardSpacing
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
spacing: content.cardSpacing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue