Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
show preview of videos (only works for .MP4)
Abi Rajacacf78a4bb12
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex a6b33583..b9b528ba 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -467,14 +467,27 @@ function App() {"scanning relative": appState === AppState.CODING,})}>- <img- className="w-[340px] border border-gray-200 rounded-md"- src={referenceImages[0]}- alt="Reference"- />+ {inputMode === "image" && (+ <img+ className="w-[340px] border border-gray-200 rounded-md"+ src={referenceImages[0]}+ alt="Reference"+ />+ )}+ {inputMode === "video" && (+ <video+ muted+ autoPlay+ loop+ className="w-[340px] border border-gray-200 rounded-md"+ src={referenceImages[0]}+ />+ )}</div><div className="text-gray-400 uppercase text-sm text-center mt-1">- Original Screenshot+ {inputMode === "video"+ ? "Original Video"+ : "Original Screenshot"}</div></div>)}