Calendar widget: fix pinned events padding

This commit is contained in:
MM20 2024-06-16 16:43:22 +02:00
parent 494127d7cc
commit 553ab2d9c2
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -230,21 +230,27 @@ fun CalendarWidget(
val pinnedEvents by viewModel.pinnedCalendarEvents.collectAsState()
if (pinnedEvents.isNotEmpty()) {
Text(
stringResource(R.string.calendar_widget_pinned_events),
modifier = Modifier.padding(
start = 4.dp,
end = 4.dp,
top = 8.dp,
bottom = 4.dp
),
style = MaterialTheme.typography.titleMedium
)
SearchResultList(
pinnedEvents,
Column(
modifier = Modifier
.fillMaxWidth()
)
.padding(horizontal = 12.dp)
.padding(bottom = 12.dp)
) {
Text(
stringResource(R.string.calendar_widget_pinned_events),
modifier = Modifier.padding(
start = 4.dp,
end = 4.dp,
top = 8.dp,
bottom = 4.dp
),
style = MaterialTheme.typography.titleMedium
)
SearchResultList(
pinnedEvents,
modifier = Modifier
.fillMaxWidth()
)
}
}
}
}