fix widget color bar: use explicit height sized to content

This commit is contained in:
Damocles 2026-04-22 20:57:04 +02:00
parent 296051efb5
commit 1cf7b95b59

View file

@ -217,10 +217,11 @@ class AgendaWidget : GlanceAppWidget() {
Spacer(GlanceModifier.width(8.dp)) Spacer(GlanceModifier.width(8.dp))
// color indicator - height adapts to content via the row // color indicator
val barHeight = if (event.location != null || !event.allDay) 32.dp else 18.dp
Box( Box(
modifier = GlanceModifier modifier = GlanceModifier
.width(3.dp) .size(width = 3.dp, height = barHeight)
.cornerRadius(2.dp) .cornerRadius(2.dp)
.background(GlanceTheme.colors.primary), .background(GlanceTheme.colors.primary),
) {} ) {}