Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Merge branch 'main' into feat/add-image-comparison

clean99219b241a6737
diff --cc frontend/src/components/Preview.tsx
index 497bfa94,3a603ff5..24f33c00
--- a/frontend/src/components/Preview.tsx
+++ b/frontend/src/components/Preview.tsx
@@@ -12,9 -23,8 +23,9 @@@ function Preview({ code, device }: Prop
return (
<div className="flex justify-center mx-2">
<iframe
+ id={`preview-${device}`}
+ ref={iframeRef}
title="Preview"
- srcDoc={throttledCode}
className={classNames(
"border-[4px] border-black rounded-[20px] shadow-lg",
"transform scale-[0.9] origin-top",