Skip to content

Commit b693d17

Browse files
committed
fix: flashing black bg when typing
1 parent 0c883a8 commit b693d17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/client/components/live-preview/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const LivePreview = ({ value }: LivePreviewProps) => {
2020
const srcdoc = `<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">${DISABLE_TAILWIND_CDN_WARN}${PREVIEW_CDN}</head><body class="h-screen">${value}</body></html>`;
2121

2222
return (
23-
<div className="relative h-full w-full">
23+
<div className="relative size-full bg-white">
2424
<iframe
25-
className="h-full w-full border-none"
25+
className="size-full border-none"
2626
sandbox="allow-scripts allow-same-origin"
2727
srcDoc={srcdoc}
2828
title="Live Preview"

0 commit comments

Comments
 (0)