⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
feat: the whole dashboard link is now draggable
Kha Nguyen23148b22d7c3
diff --git a/apps/web/components/DashboardLinks.tsx b/apps/web/components/DashboardLinks.tsxindex fcd10c84..6cbae5d8 100644--- a/apps/web/components/DashboardLinks.tsx+++ b/apps/web/components/DashboardLinks.tsx@@ -159,14 +159,13 @@ export function Card({ link, editMode, dashboardType }: Props) {ref={setNodeRef}className={cn(isDragging ? "opacity-30" : "opacity-100",- "relative group"+ "relative group touch-manipulation select-none")}- id={`${link.id}-${dashboardType}`}+ {...listeners}+ {...attributes}><span- {...listeners}- {...attributes}- className="absolute z-50 opacity-0 top-3 left-2 group-hover:opacity-60 w-8 h-8 transition-opacity duration-200 cursor-grab p-1 rounded bg-base-100/80 group-hover:hover:opacity-100 inline-flex items-center justify-center touch-none"+ className="absolute z-50 opacity-0 top-3 left-2 group-hover:opacity-60 w-8 h-8 transition-opacity duration-200 cursor-grab p-1 rounded bg-base-100/80 group-hover:hover:opacity-100 inline-flex items-center justify-center"title="Drag to reorder"><i className="bi-grip-vertical text-xl" />diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsxindex 146ebc47..217f225c 100644--- a/apps/web/pages/dashboard.tsx+++ b/apps/web/pages/dashboard.tsx@@ -204,7 +204,12 @@ export default function Dashboard() {if (!linkToMove) return;- setDroppingCollection(over.data.current?.collectionName as string);+ const targetId = over.id as string;+ if (!targetId.includes("side-bar")) {+ // when dragging over a collection on dashboard but not side bar, set the dropping collection+ // this will be used to show link placeholder on target collection+ setDroppingCollection(over.data.current?.collectionName as string);+ }};const handleDragOverCancel = () => {// Reset the dropping collection when dragging is cancelled@@ -572,7 +577,7 @@ const Section = ({return (collection?.id && (<Droppable- id={collection.id}+ id={`dashboard-${collection.id}`}data={{collectionId: collection.id,collectionName: collection.name,