Improve preview of TimelineLoadingMoreIndicator
This commit is contained in:
parent
471eb2cadc
commit
ee7f0bac8b
1 changed files with 6 additions and 2 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package io.element.android.features.messages.impl.timeline.components.virtual
|
package io.element.android.features.messages.impl.timeline.components.virtual
|
||||||
|
|
||||||
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
|
|
@ -62,8 +63,11 @@ internal fun TimelineLoadingMoreIndicator(
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
internal fun TimelineLoadingMoreIndicatorPreview() = ElementPreview {
|
internal fun TimelineLoadingMoreIndicatorPreview() = ElementPreview {
|
||||||
Column {
|
Column(
|
||||||
TimelineLoadingMoreIndicator(Timeline.PaginationDirection.FORWARDS)
|
modifier = Modifier.padding(vertical = 2.dp),
|
||||||
|
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
|
) {
|
||||||
TimelineLoadingMoreIndicator(Timeline.PaginationDirection.BACKWARDS)
|
TimelineLoadingMoreIndicator(Timeline.PaginationDirection.BACKWARDS)
|
||||||
|
TimelineLoadingMoreIndicator(Timeline.PaginationDirection.FORWARDS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue