Skip to content

Commit 518977c

Browse files
authored
feat: make Video previews larger (#1499)
* feat(PreviewPopUpContext): convertSourceLayerItemToPreview set preview to large for Videos * fix(PreviewPopUpContext): only use large preview if previewUrl is set
2 parents 8e1e763 + 779f681 commit 518977c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/webui/src/client/ui/PreviewPopUp/PreviewPopUpContext.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,13 @@ export function convertSourceLayerItemToPreview(
110110
type: 'video',
111111
src: contentStatus?.previewUrl,
112112
})
113+
options.size = 'large'
113114
} else if (contentStatus?.thumbnailUrl) {
114115
contents.push({
115116
type: 'image',
116117
src: contentStatus.thumbnailUrl,
117118
})
119+
options.size = 'large'
118120
}
119121
break
120122
}
@@ -162,7 +164,9 @@ export function convertSourceLayerItemToPreview(
162164
content: m as any,
163165
})) || []),
164166
]) as PreviewContent[],
165-
options: {},
167+
options: {
168+
size: contentStatus?.previewUrl ? 'large' : undefined,
169+
},
166170
}
167171
} else if (
168172
(sourceLayerType === SourceLayerType.GRAPHICS || sourceLayerType === SourceLayerType.LOWER_THIRD) &&

0 commit comments

Comments
 (0)