Create professional demos and 3D mockups in seconds, directly in your browser
feat: update 3D viewer rotation for improved visual alignment; enhance ControlsPopup with title bar options and refine mockup color constants
CristianOlivera1dc600ef8d06b
diff --git a/app/components/ui/editor/VideoCanvas.tsx b/app/components/ui/editor/VideoCanvas.tsxindex 8c4b88f..20949ac 100644--- a/app/components/ui/editor/VideoCanvas.tsx+++ b/app/components/ui/editor/VideoCanvas.tsx@@ -2110,7 +2110,7 @@ const VideoCanvasInner = forwardRef<VideoCanvasHandle, VideoCanvasProps>(functiosetEditingTextId(null);}}/>-+{/* ── 3D phone overlay (video & image mode) ── */}{imagePhoneActive && (<div className="absolute inset-0 pointer-events-none" style={{ zIndex: 155, overflow: "visible" }}>diff --git a/app/components/ui/editor/mockups-3d/IPhone13ProMax3DViewer.tsx b/app/components/ui/editor/mockups-3d/IPhone13ProMax3DViewer.tsxindex fe7bdac..160d8a0 100644--- a/app/components/ui/editor/mockups-3d/IPhone13ProMax3DViewer.tsx+++ b/app/components/ui/editor/mockups-3d/IPhone13ProMax3DViewer.tsx@@ -477,7 +477,7 @@ function ModelScene({{showContactShadow && (<meshposition={[-0.00, -0.203, -0.156]}- rotation={[-Math.PI / 2, 0, 0]}+ rotation={[-Math.PI / 2, 0, 0.1]}scale={[0.55, 0.55, 1.5]}><planeGeometry args={[1, 1]} />diff --git a/components/ui/ControlsPopup.tsx b/components/ui/ControlsPopup.tsxindex 12b0aca..b1ef7ae 100644--- a/components/ui/ControlsPopup.tsx+++ b/components/ui/ControlsPopup.tsx@@ -27,7 +27,7 @@ export function ControlsPopup() {}}onPointerDown={(e) => e.stopPropagation()}>- <Leva fill flat />+ <Leva titleBar={{ filter: false }} fill flat /></div>,document.body);diff --git a/types/mockup.types.ts b/types/mockup.types.tsindex 6d3cb83..7164a28 100644--- a/types/mockup.types.ts+++ b/types/mockup.types.ts@@ -1,6 +1,8 @@export type MockupCategory = "browser" | "mobile" | "ide" | "all";-export const FRAME_COLORS_DARK = ["#1e1e1e", "#181818", "#252526", "#0d1117", "#1a1b26", "#282a36"];-export const FRAME_COLORS_LIGHT = ["#ffffff", "#f3f3f3", "#f6f8fa", "#fafafa", "#e8e8e8"];+export const FRAME_COLORS_DARK = ["#1e1e1e", "#252033", "#16283d", "#2d1c28", "#1b2e24", "#2c302e"];++export const FRAME_COLORS_LIGHT = ["#ffffff", "#fff0f2", "#f0f7ff", "#f2faf6", "#f6f3ff"];+export const FRAME_COLORS = [...FRAME_COLORS_DARK, ...FRAME_COLORS_LIGHT];// Available configurations for each mockup