diff --git a/src/app/(dashboard)/page.tsx b/src/app/(dashboard)/page.tsx index 53a3064..59921c3 100644 --- a/src/app/(dashboard)/page.tsx +++ b/src/app/(dashboard)/page.tsx @@ -1,5 +1,5 @@ "use client"; -import { createContext, Dispatch, ReactNode, SetStateAction, useContext, useState } from "react"; +import { createContext, Dispatch, forwardRef, ReactNode, SetStateAction, useContext, useState } from "react"; import { useLiveQuery } from "dexie-react-hooks"; import { addProject, db, deleteProject } from "@/lib/db"; import { Label } from "@/components/ui/label"; @@ -435,7 +435,9 @@ const ProjectContainer = ({ return selecting ? projectComponent - : ({projectComponent}); + : () => { + if ((e.target as HTMLDivElement).getAttribute("data-selectable") != "true") e.preventDefault(); + }}>{projectComponent}); }; export default function Home(): ReactNode { diff --git a/src/app/(editor)/editor/[uuid]/layout.tsx b/src/app/(editor)/editor/[uuid]/layout.tsx index b503443..bb30ebe 100644 --- a/src/app/(editor)/editor/[uuid]/layout.tsx +++ b/src/app/(editor)/editor/[uuid]/layout.tsx @@ -34,24 +34,13 @@ export const viewport: Viewport = { export default async function RootLayout({ children, }: Readonly<{ - children: ReactNode; + children: ReactNode }>) { return ( - -
-