Skip to content
TypeScript

fix(web): file preview videos keep their own aspect ratio (#21839)

Nikita Maximilian Grimm43d445b408fb
diff --git a/apps/web/src/components/files/FilePreviewPanel.tsx b/apps/web/src/components/files/FilePreviewPanel.tsx
index 234f077da94..b88d92fc4ed 100644
--- a/apps/web/src/components/files/FilePreviewPanel.tsx
+++ b/apps/web/src/components/files/FilePreviewPanel.tsx
@@ -322,6 +322,7 @@ function WorkspaceVideoPreview(props: {
revision={revision}
preload="metadata"
className="flex h-full min-h-0 w-full max-w-5xl items-center justify-center"
+ videoClassName="aspect-auto max-h-full w-auto max-w-full"
onRetry={refreshAssetUrl}
actionsSource={{
kind: "video",