mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-08 05:46:45 +00:00
Improve preview of AttachmentsPreviewViewPreview to have the case with a caption.
This commit is contained in:
committed by
Benoit Marty
parent
4389657a0d
commit
512ed810f7
+6
-1
@@ -24,7 +24,12 @@ open class AttachmentsPreviewStateProvider : PreviewParameterProvider<Attachment
|
||||
override val values: Sequence<AttachmentsPreviewState>
|
||||
get() = sequenceOf(
|
||||
anAttachmentsPreviewState(),
|
||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = false)),
|
||||
anAttachmentsPreviewState(
|
||||
sendActionState = SendActionState.Sending.Processing(displayProgress = false),
|
||||
textEditorState = aTextEditorStateMarkdown(
|
||||
initialText = "This is a caption!"
|
||||
)
|
||||
),
|
||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Processing(displayProgress = true)),
|
||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.ReadyToUpload(aMediaUploadInfo())),
|
||||
anAttachmentsPreviewState(sendActionState = SendActionState.Sending.Uploading(0.5f, aMediaUploadInfo())),
|
||||
|
||||
Reference in New Issue
Block a user