mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:12:05 +00:00
Rename preview to reflect actual state
This commit is contained in:
+4
-1
@@ -604,6 +604,9 @@ internal fun TimelineViewPreview(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The jump-to-unread FAB's indicator is always rendered when the FAB is visible — in
|
||||||
|
// production the FAB only appears when unread content exists above. So `hasUnreadAbove`
|
||||||
|
// here only varies the scroll-target state, not the upper indicator's visibility.
|
||||||
@Composable
|
@Composable
|
||||||
private fun TimelineViewWithReadMarker(
|
private fun TimelineViewWithReadMarker(
|
||||||
hasUnreadAbove: Boolean,
|
hasUnreadAbove: Boolean,
|
||||||
@@ -648,7 +651,7 @@ private fun TimelineViewWithReadMarker(
|
|||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
internal fun TimelineViewWithReadMarkerNoIndicatorsPreview() = ElementPreview {
|
internal fun TimelineViewWithReadMarkerJumpToUnreadIndicatorOnlyPreview() = ElementPreview {
|
||||||
TimelineViewWithReadMarker(hasUnreadAbove = false, hasUnreadBelow = false)
|
TimelineViewWithReadMarker(hasUnreadAbove = false, hasUnreadBelow = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -161,7 +161,7 @@ class KonsistPreviewTest {
|
|||||||
"TimelineVideoWithCaptionRowPreview",
|
"TimelineVideoWithCaptionRowPreview",
|
||||||
"TimelineViewMessageShieldPreview",
|
"TimelineViewMessageShieldPreview",
|
||||||
"TimelineViewWithReadMarkerBothIndicatorsPreview",
|
"TimelineViewWithReadMarkerBothIndicatorsPreview",
|
||||||
"TimelineViewWithReadMarkerNoIndicatorsPreview",
|
"TimelineViewWithReadMarkerJumpToUnreadIndicatorOnlyPreview",
|
||||||
"UserAvatarColorsPreview",
|
"UserAvatarColorsPreview",
|
||||||
"UserProfileHeaderSectionWithVerificationViolationPreview",
|
"UserProfileHeaderSectionWithVerificationViolationPreview",
|
||||||
"VoiceItemViewPlayPreview",
|
"VoiceItemViewPlayPreview",
|
||||||
|
|||||||
Reference in New Issue
Block a user