mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Improve preview of TimelineLoadingMoreIndicator
This commit is contained in:
+6
-2
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user