feat(asset): replace mediaType/mimeType logic with proxyType

This commit is contained in:
yiling
2026-07-20 10:22:36 +08:00
parent c45a1d9ee9
commit f158d04686
40 changed files with 219 additions and 119 deletions
+2 -1
View File
@@ -51,6 +51,7 @@ interface BreadcrumbNavProps {
type: 'file' | 'folder'
version?: number
mediaType?: string | null
proxyType?: 'image' | 'video' | 'audio' | 'pdf' | null
}
isRootFolder: boolean
displayStyle?: 'card' | 'list'
@@ -158,7 +159,7 @@ export function BreadcrumbNav({
}
}
const isAudio = currentAsset.mediaType?.startsWith('audio/')
const isAudio = currentAsset.proxyType === 'audio'
const hasVideoTranscodes =
!isAudio &&
downloadInfo?.videoTranscodes &&