From da9aa7d7225c7716efb24d30d9a6a44eb47d3d5c Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 8 Jul 2025 16:39:57 +0200 Subject: [PATCH] Apply content padding to skeleton view. --- .../home/impl/components/RoomListContentView.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt index 6b87d5becb..f59ac763ca 100644 --- a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt +++ b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt @@ -74,6 +74,7 @@ fun RoomListContentView( is RoomListContentState.Skeleton -> { SkeletonView( count = contentState.count, + contentPadding = contentPadding, ) } is RoomListContentState.Empty -> { @@ -102,8 +103,15 @@ fun RoomListContentView( } @Composable -private fun SkeletonView(count: Int, modifier: Modifier = Modifier) { - LazyColumn(modifier = modifier) { +private fun SkeletonView( + count: Int, + contentPadding: PaddingValues, + modifier: Modifier = Modifier, +) { + LazyColumn( + modifier = modifier, + contentPadding = contentPadding, + ) { repeat(count) { index -> item { RoomSummaryPlaceholderRow()