mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 15:14:10 +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:
@@ -1913,6 +1913,7 @@ export class AssetService {
|
||||
originalHeight: asset.media.metadata?.originalHeight,
|
||||
originalWidth: asset.media.metadata?.originalWidth,
|
||||
spriteUrl,
|
||||
duration: asset.media.metadata?.duration,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user