Skip to content

Commit 3093f0d

Browse files
authored
fix(android): prevent summary widget overflow when all groups visible (#296)
1 parent 23af075 commit 3093f0d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

android/app/src/main/java/com/dkhalife/tasks/ui/widget/summary/TaskSummaryWidget.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,16 @@ class TaskSummaryWidget : GlanceAppWidget() {
7171
for (group in groups) {
7272
val color = WidgetTheme.groupColor(group.key)
7373
Column(
74-
modifier = GlanceModifier.padding(horizontal = 6.dp),
74+
modifier = GlanceModifier
75+
.defaultWeight()
76+
.padding(horizontal = 2.dp),
7577
horizontalAlignment = Alignment.CenterHorizontally
7678
) {
7779
Text(
7880
text = "${group.tasks.size}",
7981
style = TextStyle(
8082
color = color,
81-
fontSize = 28.sp,
83+
fontSize = 24.sp,
8284
fontWeight = FontWeight.Bold
8385
)
8486
)
@@ -87,7 +89,7 @@ class TaskSummaryWidget : GlanceAppWidget() {
8789
?.let { context.getString(it) } ?: group.name,
8890
style = TextStyle(
8991
color = GlanceTheme.colors.onSurfaceVariant,
90-
fontSize = 13.sp
92+
fontSize = 11.sp
9193
),
9294
maxLines = 1
9395
)

0 commit comments

Comments
 (0)