Apply content padding to skeleton view.

This commit is contained in:
Benoit Marty 2025-07-08 16:39:57 +02:00 committed by Benoit Marty
parent 80df68c1dc
commit da9aa7d722

View file

@ -74,6 +74,7 @@ fun RoomListContentView(
is RoomListContentState.Skeleton -> { is RoomListContentState.Skeleton -> {
SkeletonView( SkeletonView(
count = contentState.count, count = contentState.count,
contentPadding = contentPadding,
) )
} }
is RoomListContentState.Empty -> { is RoomListContentState.Empty -> {
@ -102,8 +103,15 @@ fun RoomListContentView(
} }
@Composable @Composable
private fun SkeletonView(count: Int, modifier: Modifier = Modifier) { private fun SkeletonView(
LazyColumn(modifier = modifier) { count: Int,
contentPadding: PaddingValues,
modifier: Modifier = Modifier,
) {
LazyColumn(
modifier = modifier,
contentPadding = contentPadding,
) {
repeat(count) { index -> repeat(count) { index ->
item { item {
RoomSummaryPlaceholderRow() RoomSummaryPlaceholderRow()