mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 20:34:28 +00:00
feat(file-browser): show video duration on file card preview
Display the video duration (mm:ss) in the bottom-right corner of the video file card preview area with white text and a transparent background. Duration is sourced from media metadata and exposed via the preview DTO. The overlay is gated behind a showDuration prop so it only appears on file cards, not folder card child previews.
This commit is contained in:
@@ -13,6 +13,7 @@ export const previewInfoSchema = z.object({
|
||||
originalHeight: z.number().optional(),
|
||||
originalWidth: z.number().optional(),
|
||||
spriteUrl: z.string().optional(),
|
||||
duration: z.number().optional(),
|
||||
})
|
||||
export type PreviewInfo = z.infer<typeof previewInfoSchema>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user