fix widget color bar: use explicit height sized to content
This commit is contained in:
parent
296051efb5
commit
1cf7b95b59
1 changed files with 3 additions and 2 deletions
|
|
@ -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),
|
||||||
) {}
|
) {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue