From 6113c47869f2c66405eaf57d1e3258793ed58300 Mon Sep 17 00:00:00 2001 From: Maary <24504742+Steve-Mr@users.noreply.github.com> Date: Thu, 16 May 2024 18:17:52 +0800 Subject: [PATCH] update calendar widget layout --- .../yetanothercalendarwidget/calendarwidget/CalendarWidget.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/maary/yetanothercalendarwidget/calendarwidget/CalendarWidget.kt b/app/src/main/java/com/maary/yetanothercalendarwidget/calendarwidget/CalendarWidget.kt index b53fa71..295de87 100644 --- a/app/src/main/java/com/maary/yetanothercalendarwidget/calendarwidget/CalendarWidget.kt +++ b/app/src/main/java/com/maary/yetanothercalendarwidget/calendarwidget/CalendarWidget.kt @@ -289,6 +289,7 @@ class CalendarWidget : GlanceAppWidget() { val dtend = formatMillisecondsToHhMm(event.dtend!!) Text( + modifier = GlanceModifier.fillMaxWidth(), text = if (event.allDay == false && dtend != dtstart) { "$dtstart - $dtend" } else LocalContext.current.getString(R.string.allday),