Preview: add video item in the list

This commit is contained in:
Benoit Marty
2026-06-29 11:31:21 +02:00
parent ad84122285
commit 73ef038035
@@ -27,14 +27,6 @@ class TimelineItemAttachmentsContentProvider : PreviewParameterProvider<Timeline
formattedFileSize = "2.5 MB",
fileExtension = "PDF",
),
anAttachmentItem(
filename = "photo.jpg",
mimeType = "image/jpeg",
thumbnailSource = MediaSource(url = "thumb", json = ""),
fileSize = null,
formattedFileSize = "1.2 MB",
fileExtension = "JPG",
),
anAttachmentItem(
filename = "spreadsheet.xlsx",
mimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -46,7 +38,7 @@ class TimelineItemAttachmentsContentProvider : PreviewParameterProvider<Timeline
),
aTimelineItemAttachmentsContent(
body = "Files",
caption = "Important documents",
caption = "Files mixed with media",
attachments = listOf(
anAttachmentItem(
filename = "report.pdf",
@@ -62,6 +54,22 @@ class TimelineItemAttachmentsContentProvider : PreviewParameterProvider<Timeline
formattedFileSize = "12 KB",
fileExtension = "TXT",
),
anAttachmentItem(
filename = "photo.jpg",
mimeType = "image/jpeg",
thumbnailSource = MediaSource(url = "thumb", json = ""),
fileSize = null,
formattedFileSize = "1.2 MB",
fileExtension = "JPG",
),
anAttachmentItem(
filename = "video.mp4",
mimeType = "video/mp4",
thumbnailSource = MediaSource(url = "thumb", json = ""),
fileSize = null,
formattedFileSize = "15 MB",
fileExtension = "MP4",
),
),
),
)