From a4fc92e01ef62065e0771e5613e8b5d58c486134 Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Mon, 4 Mar 2024 23:58:49 +0100 Subject: [PATCH] Fix date background in calendar events with different start/end --- calendar_event.templ | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/calendar_event.templ b/calendar_event.templ index 31e45fc..9cbd0aa 100644 --- a/calendar_event.templ +++ b/calendar_event.templ @@ -14,7 +14,6 @@ templ calendarEventTemplate(params CalendarPageParams) {

{ params.CalendarEvent.Title }

-
if params.StartAtDate == params.EndAtDate {
@@ -27,16 +26,16 @@ templ calendarEventTemplate(params CalendarPageParams) {
} else { -
+
Start date
-
+
{ params.StartAtDate }
{ params.StartAtTime }
-
+
End date
-
+
{ params.EndAtDate }
{ params.EndAtTime }