mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Apply content padding to skeleton view.
This commit is contained in:
committed by
Benoit Marty
parent
632de23b10
commit
cba4a3a029
+10
-2
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user