Skip to content

Commit b9f323d

Browse files
fix editor preload bg to be cleared after render
1 parent 8ffaa2e commit b9f323d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/scaffolds/preview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function Preview({
167167
width: target.width,
168168
height: target.height,
169169
borderRadius: 1,
170-
backgroundColor: bg_color_str,
170+
backgroundColor: !preview && bg_color_str, // clear bg after preview is rendered.
171171
contain: "layout style paint",
172172
}}
173173
>

0 commit comments

Comments
 (0)