diff --git a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx index 524ed400..657c0053 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx @@ -32,6 +32,8 @@ export default function PreviewTab() { const bridge = usePreviewBridge(); const origin = typeof window !== "undefined" ? window.location.origin : ""; + const [deviceMode, setDeviceMode] = useState<"desktop" | "mobile">("desktop"); + // Auto-select first preview on load useEffect(() => { if (!selectedUrl && options.length > 0) { @@ -50,8 +52,8 @@ export default function PreviewTab() { return (
- {options.length > 1 && ( -
+
+ {options.length > 1 && ( -
- )} -
- {loading && !iframeSrc ? ( -
- -
- ) : iframeSrc ? ( -