Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: component preview ratio
dev_wandryc276b628ddd8
diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsxindex 7da9c83a..be78bfbe 100644--- a/components/docs/component-preview.tsx+++ b/components/docs/component-preview.tsx@@ -37,7 +37,7 @@ export function ComponentPreview({ name }: { name: string }) {return (<Suspensefallback={- <div className="not-prose mb-6 aspect-video w-full animate-pulse rounded-2xl bg-muted" />+ <div className="not-prose mb-6 aspect-[1.9/1] w-full animate-pulse rounded-2xl bg-muted" />}><Preview name={name} config={entry.config} Component={entry.Component} />@@ -253,6 +253,11 @@ function PreviewStage({return (<divref={frameRef}+ // Slightly shorter than 16:9 so the player takes a touch less vertical+ // space. Compositions are a strict 1280×720 (16:9), so the Player letterboxes+ // the small delta against the surface-card background while staying full-width+ // and aligned with the tabs/customize panel. The Suspense fallback above uses+ // the same ratio to keep zero layout shift.className="surface-card aspect-video w-full overflow-hidden rounded-2xl">{mounted ? (