Remove compact clock widget divider when no clock is selected

Close #1098
This commit is contained in:
MM20 2024-12-05 18:46:26 +01:00
parent 8c4bfb7dc9
commit 62a45c55be
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -213,15 +213,17 @@ fun ClockWidget(
provider = partProvider,
)
}
Box(
modifier = Modifier
.padding(horizontal = 16.dp)
.height(56.dp)
.width(2.dp)
.background(
LocalContentColor.current
),
)
if (clockStyle !is ClockWidgetStyle.Empty) {
Box(
modifier = Modifier
.padding(horizontal = 16.dp)
.height(56.dp)
.width(2.dp)
.background(
LocalContentColor.current
),
)
}
Box(
modifier = Modifier.clickable(
enabled = clockStyle !is ClockWidgetStyle.Empty,