diff --git a/app/src/main/java/space/darkest/nova/android/widget/AgendaWidget.kt b/app/src/main/java/space/darkest/nova/android/widget/AgendaWidget.kt index 967d7a4..4e78cab 100644 --- a/app/src/main/java/space/darkest/nova/android/widget/AgendaWidget.kt +++ b/app/src/main/java/space/darkest/nova/android/widget/AgendaWidget.kt @@ -217,14 +217,14 @@ class AgendaWidget : GlanceAppWidget() { Spacer(GlanceModifier.width(8.dp)) - // color indicator - Spacer( + // color indicator - height based on whether there's a second line + val hasSecondLine = event.location != null || !event.allDay + Box( modifier = GlanceModifier - .width(3.dp) - .height(16.dp) + .size(width = 3.dp, height = if (hasSecondLine) 32.dp else 18.dp) .cornerRadius(2.dp) .background(GlanceTheme.colors.primary), - ) + ) {} Spacer(GlanceModifier.width(8.dp)) @@ -237,7 +237,7 @@ class AgendaWidget : GlanceAppWidget() { fontSize = 13.sp, fontWeight = FontWeight.Medium, ), - maxLines = 2, + maxLines = 1, ) if (event.location != null) { Text(