From 79c92ae6b3a31a62fdb867b166a5c8456c9c92c1 Mon Sep 17 00:00:00 2001 From: niklasberlin Date: Wed, 9 Oct 2024 20:03:35 +0200 Subject: [PATCH 1/2] Update _calendar.scss fix miss aligned colums when month starts with a sunday --- assets/css/_calendar.scss | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/css/_calendar.scss b/assets/css/_calendar.scss index 123b3d6..90b66d5 100644 --- a/assets/css/_calendar.scss +++ b/assets/css/_calendar.scss @@ -208,27 +208,27 @@ } // start the days of the week in same day column every month - .day-2:first-child { + .day-2:first-child { //tuesday grid-column: 2; } - .day-3:first-child { + .day-3:first-child { //wednesday grid-column: 3; } - .day-4:first-child { + .day-4:first-child { //thursday grid-column: 4; } - .day-5:first-child { + .day-5:first-child { //friday grid-column: 5; } - .day-6:first-child { + .day-6:first-child { //saturday grid-column: 6; } - .day-7:first-child { + .day-0:first-child { //sunday grid-column: 7; } } From c023d9492571c989a521f02f99d985cf7cecfe6a Mon Sep 17 00:00:00 2001 From: niklasberlin Date: Wed, 9 Oct 2024 20:04:58 +0200 Subject: [PATCH 2/2] Update _calendar.scss add min-height for days so that rows without events (for example weeks with only a sunday) don't look to small --- assets/css/_calendar.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/_calendar.scss b/assets/css/_calendar.scss index 90b66d5..1aab6b6 100644 --- a/assets/css/_calendar.scss +++ b/assets/css/_calendar.scss @@ -106,6 +106,7 @@ .day { min-width: 0; + min-height: 8rem; margin-top: 1rem; padding: 0.4rem 0; border-top: 2px solid rgba(89, 89, 89, 0.44);