Skip to content

Commit 43d445b

Browse files
fix(web): file preview videos keep their own aspect ratio (#21839)
Co-authored-by: maria-rcks <[email protected]>
1 parent 9b1802d commit 43d445b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/components/files/FilePreviewPanel.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ function WorkspaceVideoPreview(props: {
322322
revision={revision}
323323
preload="metadata"
324324
className="flex h-full min-h-0 w-full max-w-5xl items-center justify-center"
325+
videoClassName="aspect-auto max-h-full w-auto max-w-full"
325326
onRetry={refreshAssetUrl}
326327
actionsSource={{
327328
kind: "video",

0 commit comments

Comments
 (0)