diff --git a/src/app/[game]/[category]/page.tsx b/src/app/[game]/[category]/page.tsx index e36c2bbc..ef23794b 100644 --- a/src/app/[game]/[category]/page.tsx +++ b/src/app/[game]/[category]/page.tsx @@ -52,6 +52,7 @@ export default async function GameCategoryPage({ params }: Readonly) { game: game, category: category, }); + log.flush(); return ( @@ -127,13 +128,13 @@ export default async function GameCategoryPage({ params }: Readonly) { Single Click: {" "} - View/Download Asset + Select Asset

Double Click: {" "} - Select Asset + View Asset

diff --git a/src/components/asset/asset-item.tsx b/src/components/asset/asset-item.tsx index 3e73ecb1..dff6fe92 100644 --- a/src/components/asset/asset-item.tsx +++ b/src/components/asset/asset-item.tsx @@ -32,9 +32,6 @@ export function AssetItem({ category: string; }>) { const [dialogOpen, setDialogOpen] = useState(false); - const [clickTimeout, setClickTimeout] = useState( - null, - ); const dispatch = useAppDispatch(); @@ -43,26 +40,16 @@ export function AssetItem({ asset, ); - const handleClick = () => { - if (clickTimeout) { - clearTimeout(clickTimeout); - setClickTimeout(null); - dispatch(toggleAssetSelection(asset)); - } else { - const timeout = setTimeout(() => { - setDialogOpen(true); - setClickTimeout(null); - }, 250); - setClickTimeout(timeout); - } - }; - return (
setDialogOpen(true)} + onClick={(e) => { + e.stopPropagation(); + dispatch(toggleAssetSelection(asset)); + }} >
+

{asset.name}

@@ -98,7 +95,7 @@ export function AssetItem({ className="w-full" download > -