aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/UploadDropzone.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/dashboard/UploadDropzone.tsx')
-rw-r--r--apps/web/components/dashboard/UploadDropzone.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/web/components/dashboard/UploadDropzone.tsx b/apps/web/components/dashboard/UploadDropzone.tsx
index d3945cc3..c76da523 100644
--- a/apps/web/components/dashboard/UploadDropzone.tsx
+++ b/apps/web/components/dashboard/UploadDropzone.tsx
@@ -2,6 +2,7 @@
import React, { useCallback, useState } from "react";
import { toast } from "@/components/ui/sonner";
+import { BOOKMARK_DRAG_MIME } from "@/lib/bookmark-drag";
import useUpload from "@/lib/hooks/upload-file";
import { cn } from "@/lib/utils";
import { TRPCClientError } from "@trpc/client";
@@ -136,7 +137,12 @@ export default function UploadDropzone({
<DropZone
noClick
onDrop={onDrop}
- onDragEnter={() => setDragging(true)}
+ onDragEnter={(e) => {
+ // Don't show overlay for internal bookmark card drags
+ if (!e.dataTransfer.types.includes(BOOKMARK_DRAG_MIME)) {
+ setDragging(true);
+ }
+ }}
onDragLeave={() => setDragging(false)}
>
{({ getRootProps, getInputProps }) => (