Fix calendar spacing

This commit is contained in:
Ly-sec 2025-08-11 14:11:17 +02:00
parent ccd5fbba3a
commit 6c2b1cdfb1

View file

@ -21,7 +21,7 @@ NLoader {
border.color: Colors.backgroundTertiary border.color: Colors.backgroundTertiary
border.width: Math.max(1, Style.borderMedium * scaling) border.width: Math.max(1, Style.borderMedium * scaling)
width: 340 * scaling width: 340 * scaling
height: 380 * scaling // Scale the height and make it larger height: 320 * scaling // Reduced height to eliminate bottom space
anchors.top: parent.top anchors.top: parent.top
anchors.right: parent.right anchors.right: parent.right
anchors.topMargin: Style.marginTiny * scaling anchors.topMargin: Style.marginTiny * scaling
@ -36,11 +36,13 @@ NLoader {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
anchors.margins: Style.marginMedium * scaling anchors.margins: Style.marginMedium * scaling
spacing: Style.marginMedium * scaling spacing: Style.marginTiny * scaling
// Header: Month/Year with navigation // Header: Month/Year with navigation
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.leftMargin: Style.marginMedium * scaling
Layout.rightMargin: Style.marginMedium * scaling
spacing: Style.marginSmall * scaling spacing: Style.marginSmall * scaling
NIconButton { NIconButton {
@ -71,8 +73,11 @@ NLoader {
} }
} }
// Divider between header and weekdays
NDivider { NDivider {
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: Style.marginSmall * scaling
Layout.bottomMargin: Style.marginMedium * scaling
} }
// Columns label (respects locale's first day of week) // Columns label (respects locale's first day of week)
@ -107,6 +112,7 @@ NLoader {
id: grid id: grid
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true // Take remaining space
Layout.leftMargin: Style.marginSmall * scaling Layout.leftMargin: Style.marginSmall * scaling
Layout.rightMargin: Style.marginSmall * scaling Layout.rightMargin: Style.marginSmall * scaling
spacing: 0 spacing: 0