We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15340c2 commit cb5ddc6Copy full SHA for cb5ddc6
2 files changed
packages/devtools/client/components/AssetDetails.vue
@@ -118,6 +118,7 @@ const supportsPreview = computed(() => {
118
'image',
119
'text',
120
'video',
121
+ 'audio',
122
'font',
123
].includes(asset.value.type)
124
})
packages/devtools/client/components/AssetPreview.vue
@@ -25,6 +25,10 @@ defineProps<{
25
<div v-else-if="asset.type === 'video'">
26
<video :src="asset.publicPath" :autoplay="detail" :controls="detail" />
27
</div>
28
+ <div v-else-if="asset.type === 'audio'">
29
+ <div v-if="!detail" i-carbon-volume-up text-3xl op20 />
30
+ <audio v-else :src="asset.publicPath" controls />
31
+ </div>
32
<div v-else i-carbon-help text-3xl op20 />
33
34
</template>
0 commit comments