mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
The browser's default 8px body margin was causing white bars at the top and left edges of rendered videos. Previously normalizePreviewViewport (a React call on the studio iframe) handled this for preview, but the render pipeline never called it — creating a preview/render parity gap. Fix: apply margin:0 / padding:0 / overflow:hidden on documentElement and body at the start of initSandboxRuntimeModular, so both preview and render contexts get identical normalization from the same code path.