Skip to content

A self-hosted media server and file management system

fix: video preview is wrong size when image fails to load

aminnausin8d9ddddc92ff
diff --git a/resources/js/components/video/VideoPreview.vue b/resources/js/components/video/VideoPreview.vue
index 91b40d94..35e4a7b2 100644
--- a/resources/js/components/video/VideoPreview.vue
+++ b/resources/js/components/video/VideoPreview.vue
@@ -239,7 +239,7 @@ defineExpose({ hovered });
</div>
</template>
- <div v-else :class="cn('bg-surface-3 flex aspect-video h-24 shrink-0 items-center justify-center dark:bg-neutral-900/80', { 'w-24': isFolderMajorityAudio })">
+ <div v-else :class="cn('bg-surface-3 flex aspect-video h-24 shrink-0 items-center justify-center dark:bg-neutral-900/80', { 'w-24': isFolderMajorityAudio }, $attrs.class)">
<ProIconsPhotoOff class="text-foreground-1 size-5" />
</div>
</div>