Create professional demos and 3D mockups in seconds, directly in your browser
feat: enhance UI components and improve layout across various sections
CristianOlivera1726052e5c776
diff --git a/app/[locale]/(home)/page.tsx b/app/[locale]/(home)/page.tsxindex e15a230..99d5b02 100644--- a/app/[locale]/(home)/page.tsx+++ b/app/[locale]/(home)/page.tsx@@ -1,13 +1,12 @@-import { CarouselDemos } from "@/app/components/ui/home/CarouselDemos";import Hero from "@/app/components/ui/home/Hero";import InteractiveRecordingSteps from "@/app/components/ui/home/RecordingSteps";import { StructuredData, generateWebAppSchema, generateOrganizationSchema } from "@/app/components/seo/StructuredData";import type { Metadata } from 'next';import DonationCard from "@/app/components/ui/home/DonationCard";-import EditorPreview from "@/app/components/ui/home/EditorPreview";import VideoHero from "@/app/components/ui/home/VideoHero";import BannerCTA from "@/app/components/ui/home/BannerCTA";import FeaturesGrid from "@/app/components/ui/home/Featuresgrid";+import FeaturesShowcase from "@/app/components/ui/home/FeaturesShowcase";type Props = {params: Promise<{ locale: string }>;@@ -70,7 +69,7 @@ export default async function Home({ params }: Props) {return (<>- <StructuredData data={generateWebAppSchema(locale as 'es' | 'en')} />+ <StructuredData data={generateWebAppSchema(locale as 'en' | 'es' | 'ru')} /><StructuredData data={generateOrganizationSchema()} /><div className="flex flex-col">@@ -86,34 +85,22 @@ export default async function Home({ params }: Props) {</div><section className="w-full py-10 sm:py-16" aria-label="How it works">- <div className="max-w-7xl mx-auto px-6 xl:px-0">+ <div className="max-w-7xl mx-auto xl:px-0"><InteractiveRecordingSteps /></div></section>- <div className="relative overflow-hidden bg-gradient-radial-primary w-full">- <div className="absolute top-0 left-1/2 -translate-x-1/2 w-250 h-[150%] rounded-[100%] blur-xl pointer-events-none" aria-hidden="true"></div>+ <div className="relative overflow-hidden w-full bg-black"><section className="w-full" aria-label="Editor features and demos"><div className="w-full mx-auto">- {/* <EditorPreview /> */}+ <FeaturesShowcase /><FeaturesGrid /></div>- <CarouselDemos />- <section className="pt-4 pb-10 sm:py-2 w-full mb-0 sm:mb-42" aria-label="Support the project">- <div- className="absolute left-1/2 -translate-x-1/2 w-150 h-500 pointer-events-none z-0 pro-glow"- style={{- mixBlendMode: 'plus-lighter',- willChange: 'filter, background',- background: 'radial-gradient(circle at var(--glow-x) 20%, rgba(6, 182, 212, 0.25) 0%, transparent 70%)'- }}- aria-hidden="true"- />- <div className="max-w-xl mx-auto px-6">- <DonationCard />- </div>- <div className="absolute inset-x-0 bottom-0 h-32 bg-linear-to-t from-[#0a0a0a] to-transparent pointer-events-none z-20" />- </section>++ <div className="max-w-xl mx-auto px-6 pt-24 pb-50">+ <DonationCard />+ </div>+<BannerCTA /></section></div>diff --git a/app/components/common/Header.tsx b/app/components/common/Header.tsxindex c266c79..18e0c61 100644--- a/app/components/common/Header.tsx+++ b/app/components/common/Header.tsx@@ -73,7 +73,7 @@ export default function Header() {isScrolled ? "border-b border-white/10 bg-[#050505]/80 backdrop-blur-xl py-0" : "bg-transparent border-transparent py-2")}>- <div className="max-w-6xl px-6 xl:px-0 mx-auto h-16 flex items-center justify-between">+ <div className="max-w-7xl px-6 xl:px-8 mx-auto h-16 flex items-center justify-between"><Link href="/" className="flex items-center gap-2 group" aria-label="OpenVid - Go to home"><Image src="/svg/logo-openvid.svg" alt="" aria-hidden="true" width={50} height={50} style={{ height: "auto" }} /><Image src="/svg/openvid.svg" alt="OpenVid" width={100} height={50} className="hidden sm:flex" style={{ height: "auto" }} />diff --git a/app/components/seo/StructuredData.tsx b/app/components/seo/StructuredData.tsxindex 7b65acd..af5d301 100644--- a/app/components/seo/StructuredData.tsx+++ b/app/components/seo/StructuredData.tsx@@ -62,7 +62,7 @@ export function StructuredData({ data }: StructuredDataProps) {);}-export function generateWebAppSchema(locale: 'es' | 'en'): WebApplicationSchema {+export function generateWebAppSchema(locale: 'es' | 'en' | 'ru'): WebApplicationSchema {const baseUrl = 'https://openvid.dev';const content = {diff --git a/app/components/ui/editor/CanvasElementsLayer.tsx b/app/components/ui/editor/CanvasElementsLayer.tsxindex d8ebf39..4e38610 100644--- a/app/components/ui/editor/CanvasElementsLayer.tsx+++ b/app/components/ui/editor/CanvasElementsLayer.tsx@@ -2,7 +2,7 @@ import { SVG_COMPONENTS } from "@/components/canvas-svg";import { RotationHandleIcon } from "@/components/ui/RotationHandleIcon";import { Corner, VIDEO_Z_INDEX, getNearestCorner, getCornerStyle } from "@/lib";import { CanvasElement, SvgElement, ImageElement, TextElement } from "@/types/canvas-elements.types";-import { useRef, useState, useEffect, useCallback } from "react";+import { useRef, useState, useEffect, useCallback, useMemo } from "react";function InlineTextEditor({element,@@ -33,7 +33,7 @@ function InlineTextEditor({const sel = window.getSelection();sel?.removeAllRanges();sel?.addRange(range);- // eslint-disable-next-line react-hooks/exhaustive-deps+ // eslint-disable-next-line react-hooks/exhaustive-deps}, []);const fontSize = refSize > 0 ? element.fontSize * (refSize / 1080) : element.fontSize;@@ -152,13 +152,22 @@ export function CanvasElementsLayer({}}, [canvasContainerRef]);- const filteredElements = hitTestOnly- ? canvasElements- : canvasElements.filter(element =>- behindVideo ? element.zIndex < VIDEO_Z_INDEX : element.zIndex >= VIDEO_Z_INDEX- );+ const sortedElements = useMemo(() => {+ const filtered = hitTestOnly+ ? canvasElements+ : canvasElements.filter(el =>+ behindVideo ? el.zIndex < VIDEO_Z_INDEX : el.zIndex >= VIDEO_Z_INDEX+ );+ return [...filtered].sort((a, b) => {+ if (hitTestOnly) {+ if (a.id === selectedElementId) return 1;+ if (b.id === selectedElementId) return -1;+ }+ return a.zIndex - b.zIndex;+ });+ }, [canvasElements, hitTestOnly, behindVideo, selectedElementId]);- if (filteredElements.length === 0) {+ if (sortedElements.length === 0) {return (<divref={setRefs}@@ -179,13 +188,7 @@ export function CanvasElementsLayer({}}style={{ zIndex: layerZIndex, pointerEvents: 'none' }}>- {[...filteredElements].sort((a, b) => {- if (hitTestOnly) {- if (a.id === selectedElementId) return 1;- if (b.id === selectedElementId) return -1;- }- return a.zIndex - b.zIndex;- }).map((element) => {+ {sortedElements.map((element) => {const isSelected = selectedElementId === element.id || (selectedElementIds?.includes(element.id) ?? false);const isHovered = hoveredElementId === element.id;const activeCorner: Corner | null = elementCorners[element.id] ?? null;diff --git a/app/components/ui/editor/ControlPanel.tsx b/app/components/ui/editor/ControlPanel.tsxindex d2892ea..0dfc91c 100644--- a/app/components/ui/editor/ControlPanel.tsx+++ b/app/components/ui/editor/ControlPanel.tsx@@ -293,6 +293,7 @@ export function ControlPanel({selectedWallpaper={selectedWallpaper}selectedImageUrl={selectedImageUrl}initialPage={initialMockupMenuPage}+ mediaType={mediaType}/></Suspense>)}diff --git a/app/components/ui/editor/ElementsMenu.tsx b/app/components/ui/editor/ElementsMenu.tsxindex 2f0714f..3c68417 100644--- a/app/components/ui/editor/ElementsMenu.tsx+++ b/app/components/ui/editor/ElementsMenu.tsx@@ -1,7 +1,7 @@"use client";import { Icon } from "@iconify/react";-import { useState, useEffect, useRef, startTransition, useCallback } from "react";+import { useState, useEffect, useRef, startTransition, useCallback, useLayoutEffect } from "react";import { useTranslations } from "next-intl";import { SliderControl } from "../../../../components/ui/SliderControl";import { SVG_CATEGORIES, IMAGE_CATEGORIES, PINNED_SVG_ITEMS, PINNED_IMAGE_ITEMS, getImagePreviewPath } from "@/lib/canvas-elements.config";@@ -40,6 +40,11 @@ export function ElementsMenu({const [imageSize, setImageSize] = useState(30);const [selectedSvgCategory, setSelectedSvgCategory] = useState<string>("all");const [selectedImageCategory, setSelectedImageCategory] = useState<string>("all");+ const onUpdateElementRef = useRef(onUpdateElement);+ useLayoutEffect(() => {+ onUpdateElementRef.current = onUpdateElement;+ });+const [uploadedImages, setUploadedImages] = useState<UploadedImage[]>(() => {try {const stored = localStorage.getItem(STORAGE_KEY);@@ -54,7 +59,6 @@ export function ElementsMenu({const isSyncing = useRef(false);const lastSelectedId = useRef<string | null>(null);- // Switch to text tab when the parent triggers it (e.g. 'T' key shortcut)useEffect(() => {if (textTabTrigger > 0) {startTransition(() => {@@ -99,26 +103,34 @@ export function ElementsMenu({}, [selectedElement]);useEffect(() => {- if (!isSyncing.current && selectedElement?.type === "svg" && onUpdateElement) {- // SVG elements are always square- onUpdateElement(selectedElement.id, { width: shapeSize, height: shapeSize, color: shapeColor, opacity: shapeOpacity / 100 });+ if (!isSyncing.current && selectedElement?.type === "svg") {+ onUpdateElementRef.current?.(selectedElement.id, {+ width: shapeSize, height: shapeSize,+ color: shapeColor, opacity: shapeOpacity / 100+ });}- }, [shapeSize, shapeColor, shapeOpacity, selectedElement?.id, selectedElement?.type, onUpdateElement]);+ }, [shapeSize, shapeColor, shapeOpacity, selectedElement?.id, selectedElement?.type]);useEffect(() => {- if (!isSyncing.current && selectedElement?.type === "image" && onUpdateElement) {- // Maintain aspect ratio: calculate height based on original proportions+ if (!isSyncing.current && selectedElement?.type === "image") {const aspectRatio = selectedElement.width / selectedElement.height;const newHeight = aspectRatio > 0 ? imageSize / aspectRatio : imageSize;- onUpdateElement(selectedElement.id, { width: imageSize, height: newHeight, opacity: imageOpacity / 100 });+ onUpdateElementRef.current?.(selectedElement.id, {+ width: imageSize, height: newHeight, opacity: imageOpacity / 100+ });}- }, [imageSize, imageOpacity, selectedElement?.id, selectedElement?.type, selectedElement?.width, selectedElement?.height, onUpdateElement]);+ }, [imageSize, imageOpacity, selectedElement?.id, selectedElement?.type,+ selectedElement?.width, selectedElement?.height]);useEffect(() => {- if (!isSyncing.current && selectedElement?.type === "text" && onUpdateElement) {- onUpdateElement(selectedElement.id, { content: textContent, fontSize: textFontSize, color: textColor, opacity: textOpacity / 100, fontFamily: textFontFamily, fontWeight: textFontWeight });+ if (!isSyncing.current && selectedElement?.type === "text") {+ onUpdateElementRef.current?.(selectedElement.id, {+ content: textContent, fontSize: textFontSize, color: textColor,+ opacity: textOpacity / 100, fontFamily: textFontFamily, fontWeight: textFontWeight+ });}- }, [textContent, textFontSize, textColor, textOpacity, textFontFamily, textFontWeight, selectedElement?.id, selectedElement?.type, onUpdateElement]);+ }, [textContent, textFontSize, textColor, textOpacity, textFontFamily,+ textFontWeight, selectedElement?.id, selectedElement?.type]);useEffect(() => {if (uploadedImages.length > 0) {diff --git a/app/components/ui/editor/ImageCropperModal.tsx b/app/components/ui/editor/ImageCropperModal.tsxindex 7362525..c8ea790 100644--- a/app/components/ui/editor/ImageCropperModal.tsx+++ b/app/components/ui/editor/ImageCropperModal.tsx@@ -227,7 +227,6 @@ export function ImageCropperModal({transition={{ duration: 0.18, ease: [0.16, 1, 0.3, 1] }}className="bg-[#0a0a0b] rounded-2xl border border-white/10 w-[92vw] max-w-5xl max-h-[88vh] flex flex-col overflow-hidden shadow-2xl">- {/* Header */}<div className="flex items-center justify-between px-5 py-3.5 border-b border-white/10"><div className="flex items-center gap-2.5"><div className="w-6 h-6 rounded-md bg-white/10 flex items-center justify-center">@@ -248,9 +247,7 @@ export function ImageCropperModal({</button></div>- {/* Content */}<div className="flex-1 flex overflow-hidden min-h-0">- {/* Preview Area */}<div className="flex-1 p-6 flex items-center justify-center bg-black/50 overflow-hidden"><divref={containerRef}@@ -266,7 +263,6 @@ export function ImageCropperModal({maxHeight: '100%',}}>- {/* Imagen */}<imgref={imageRef}src={imageUrl || ''}@@ -276,7 +272,6 @@ export function ImageCropperModal({draggable={false}/>- {/* Overlay oscuro fuera del área de recorte */}<div className="absolute inset-0 pointer-events-none"><svg width="100%" height="100%" className="absolute inset-0"><defs>@@ -295,7 +290,6 @@ export function ImageCropperModal({</svg></div>- {/* Área de recorte */}<divclassName="absolute border-2 border-white shadow-lg cursor-move"style={{@@ -306,39 +300,46 @@ export function ImageCropperModal({}}onMouseDown={(e) => handleMouseDown(e, "move")}>- {/* Regla de tercios */}<div className="absolute inset-0 grid grid-cols-3 grid-rows-3 pointer-events-none">{[...Array(9)].map((_, i) => (<div key={i} className="border border-white/20" />))}</div>- {/* Handles de resize */}- {["nw", "ne", "sw", "se", "n", "s", "w", "e"].map((handle) => (- <div- key={handle}- className={`absolute w-3 h-3 bg-white border border-gray-800 rounded-sm cursor-${- handle.includes("n") || handle.includes("s") ? "ns" : handle.includes("w") || handle.includes("e") ? "ew" : "nwse"- }-resize hover:scale-125 transition-transform`}- style={{- ...(handle.includes("n") && { top: -1.5 }),- ...(handle.includes("s") && { bottom: -1.5 }),- ...(handle.includes("w") && { left: -1.5 }),- ...(handle.includes("e") && { right: -1.5 }),- ...(!handle.includes("n") && !handle.includes("s") && { top: "50%", transform: "translateY(-50%)" }),- ...(!handle.includes("w") && !handle.includes("e") && { left: "50%", transform: "translateX(-50%)" }),- }}- onMouseDown={(e) => handleMouseDown(e, "resize", handle)}- />- ))}+ {["nw", "ne", "sw", "se", "n", "s", "w", "e"].map((handle) => {+ const cursorClass =+ handle === "nw" || handle === "se" ? "cursor-nwse-resize" :+ handle === "ne" || handle === "sw" ? "cursor-nesw-resize" :+ handle === "n" || handle === "s" ? "cursor-ns-resize" :+ "cursor-ew-resize";++ const translateClass =+ handle === "n" || handle === "s" ? "-translate-x-1/2" :+ handle === "w" || handle === "e" ? "-translate-y-1/2" :+ "";++ return (+ <div+ key={handle}+ className={`absolute w-3 h-3 bg-white border border-gray-800 rounded-full transition hover:scale-125 transform ${translateClass} ${cursorClass}`}+ style={{+ top: handle.includes("n") ? "-8px" : handle.includes("s") ? "auto" : "50%",+ bottom: handle.includes("s") ? "-8px" : "auto",++ left: handle.includes("w") ? "-8px" : handle.includes("e") ? "auto" : "50%",+ right: handle.includes("e") ? "-8px" : "auto",+ }}+ onMouseDown={(e) => handleMouseDown(e, "resize", handle)}+ />+ );+ })}</div>+</div></div></div>- {/* Sidebar */}<div className="w-64 bg-[#0a0a0b] border-l border-white/10 flex flex-col">- {/* Aspect Ratios */}<div className="p-4 border-b border-white/10"><p className="text-[10px] uppercase tracking-widest font-semibold text-white/60 mb-3">{t("sections.ratio")}@@ -348,17 +349,16 @@ export function ImageCropperModal({<div key={ratio.label} className="relative"><buttononClick={() => handleAspectRatioSelect(ratio.value)}- className={`w-full py-1.5 text-[11px] font-medium rounded-lg transition-all ${- selectedAspectRatio === ratio.value- ? "text-white border-transparent"- : "bg-white/4 text-white/40 hover:bg-white/8 hover:text-white/70 border border-white/10"- }`}+ className={`w-full py-1.5 text-[11px] font-medium rounded-lg transition-all ${selectedAspectRatio === ratio.value+ ? "text-white border-transparent"+ : "bg-white/4 text-white/40 hover:bg-white/8 hover:text-white/70 border border-white/10"+ }`}style={selectedAspectRatio === ratio.value? {- background: "radial-gradient(circle at 50% 0%, #555555 0%, #252525 64%)",- boxShadow: "0 0 0 1px #fff3, 0 4px 4px 0 #0004, 0 0 0 1px #333",- }+ background: "radial-gradient(circle at 50% 0%, #555555 0%, #252525 64%)",+ boxShadow: "0 0 0 1px #fff3, 0 4px 4px 0 #0004, 0 0 0 1px #333",+ }: {}}>@@ -372,7 +372,6 @@ export function ImageCropperModal({</div></div>- {/* Crop Area Info */}<div className="p-4 border-b border-white/10"><p className="text-[10px] uppercase tracking-widest font-semibold text-white/60 mb-3">{t("sections.area")}@@ -395,7 +394,6 @@ export function ImageCropperModal({<div className="flex-1" />- {/* Actions */}<div className="p-4 flex flex-col gap-2"><Button variant="outline" onClick={handleReset}>{t("buttons.reset")}diff --git a/app/components/ui/home/BannerCTA.tsx b/app/components/ui/home/BannerCTA.tsxindex 703482d..746d917 100644--- a/app/components/ui/home/BannerCTA.tsx+++ b/app/components/ui/home/BannerCTA.tsx@@ -29,7 +29,7 @@ export default function BannerCTA() {><divaria-hidden="true"- className="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(0,163,255,0.09)_0%,transparent_70%)]"+ className="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(0,163,255,0.1)_0%,transparent_70%)]"/><divdiff --git a/app/components/ui/home/DonationCard.tsx b/app/components/ui/home/DonationCard.tsxindex 6d90a1b..e946a61 100644--- a/app/components/ui/home/DonationCard.tsx+++ b/app/components/ui/home/DonationCard.tsx@@ -11,7 +11,7 @@ export default function DonationCard() {href="/donate"target="_blank"rel="noopener noreferrer"- className="relative group flex items-center justify-between w-full overflow-hidden rounded-3xl border border-white/10 bg-[#0E0E12] p-8 transition-all hover:border-white/20 hover:bg-white/4 active:scale-[0.99]"+ className="relative group flex items-center justify-between w-full overflow-hidden squircle-element-camera border border-white/10 bg-[#0E0E12] p-8 transition-all hover:border-white/20 hover:bg-white/4 active:scale-[0.99]"aria-label={t('title')}><div className="absolute -right-20 -top-20 h-64 w-64 rounded-full bg-blue-500/15 blur-[80px] pointer-events-none transition-opacity group-hover:opacity-100 opacity-50" />diff --git a/app/components/ui/home/RecordingSteps.tsx b/app/components/ui/home/RecordingSteps.tsxindex 6d59949..f69c158 100644--- a/app/components/ui/home/RecordingSteps.tsx+++ b/app/components/ui/home/RecordingSteps.tsx@@ -99,9 +99,9 @@ export default function InteractiveRecordingSteps() {</div>),visual: (- <div className="aspect-video bg-[#0A0A0A]rounded-xl flex items-center justify-center relative group shadow-2xl p-1 sm:p-0">+ <div className="aspect-video bg-[#0A0A0A]squircle-element-camera flex items-center justify-center relative group shadow-2xl p-1 sm:p-0"><div className="absolute inset-0 bg-[radial-linear(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10"></div>- <div className="bg-[#292A2D] rounded-xl w-full max-w-full shadow-2xl relative z-10 flex flex-col font-sans border border-white/5 origin-center">+ <div className="bg-[#292A2D] squircle-element-camera w-full max-w-full shadow-2xl relative z-10 flex flex-col font-sans border border-white/5 origin-center"><div className="flex justify-between px-2 sm:px-4 pt-2 sm:pt-3 border-b border-white/10 text-[9px] sm:text-[11px] font-medium"><div className="pb-2 text-neutral-400 hover:text-neutral-200 flex-1 text-center transition-colors truncate px-1">{t('step1.visual.browserTab')}@@ -175,7 +175,7 @@ export default function InteractiveRecordingSteps() {isReversed: false,actionButton: null,visual: (- <div className="aspect-video bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden flex items-center justify-center relative group shadow-2xl p-4">+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden flex items-center justify-center relative group shadow-2xl p-4"><div className="absolute inset-0 bg-[radial-linear(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10"></div><div className="absolute top-0 left-1/2 -translate-x-1/2 w-75 h-37.5 bg-blue-500/5 rounded-[100%] blur-3xl"></div><div className="bg-[#1C1A20] border border-white/5 rounded-2xl sm:rounded-full px-4 sm:pl-4 sm:pr-6 py-3 sm:py-2 flex flex-col sm:flex-row items-center gap-3 sm:gap-4 shadow-2xl z-10 w-full sm:w-auto max-w-[90%] sm:max-w-none text-center sm:text-left">@@ -211,7 +211,7 @@ export default function InteractiveRecordingSteps() {isReversed: true,actionButton: null,visual: (- <div className="aspect-video bg-[#000B13] border border-white/10 rounded-xl overflow-hidden relative group shadow-2xl">+ <div className="aspect-video bg-[#000B13] border border-white/10 squircle-element-camera overflow-hidden relative group shadow-2xl"><div className="absolute inset-0 bg-[#000B13]/95 backdrop-blur-md flex items-center justify-center z-10 p-4 sm:p-6"><div className="flex flex-col items-center justify-center h-full w-full max-h-full"><div className="relative w-20 h-20 sm:w-32 sm:h-32 flex items-center justify-center shrink-0">@@ -266,7 +266,7 @@ export default function InteractiveRecordingSteps() {</Button>),visual: (- <div className="aspect-video bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden relative group shadow-2xl flex items-center justify-center">+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden relative group shadow-2xl flex items-center justify-center"><div className="absolute top-1/2 left-0 w-full h-px bg-white/5"></div><div className="absolute top-0 left-1/2 w-px h-full bg-white/5"></div><div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-auto w-full px-4 sm:px-0 sm:w-auto">@@ -305,7 +305,7 @@ export default function InteractiveRecordingSteps() {{t('title2')}</span></h2>- <p className="text-lg text-neutral-400 font-light leading-relaxed max-w-xl">+ <p className="text-xl text-neutral-400 font-light leading-relaxed max-w-xl">{t('subtitle')}</p></div>diff --git a/components/ui/ControlsPopup.tsx b/components/ui/ControlsPopup.tsxindex 66c1cca..9c812f8 100644--- a/components/ui/ControlsPopup.tsx+++ b/components/ui/ControlsPopup.tsx@@ -23,7 +23,7 @@ export function ControlsPopup() {bottom: "240px",right: "325px",width: "320px",- zIndex: 99999,+ zIndex: 10,}}onPointerDown={(e) => e.stopPropagation()}>