Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix: change drag handle to inside link card

Kha Nguyena8928e9de4e0
diff --git a/apps/web/components/DashboardLinks.tsx b/apps/web/components/DashboardLinks.tsx
index 6e4d0e77..5ec83512 100644
--- a/apps/web/components/DashboardLinks.tsx
+++ b/apps/web/components/DashboardLinks.tsx
@@ -144,8 +144,6 @@ export function Card({ link, editMode, dashboardType }: Props) {
isDragging ? "opacity-30" : "opacity-100",
"relative group touch-manipulation select-none"
)}
- {...listeners}
- {...attributes}
>
<div
ref={ref}
@@ -156,6 +154,8 @@ export function Card({ link, editMode, dashboardType }: Props) {
onClick={() =>
!editMode && openLink(link, user, () => setLinkModal(true))
}
+ {...listeners}
+ {...attributes}
>
{show.image && (
<div>
diff --git a/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx b/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx
index 64793367..8f02ab69 100644
--- a/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx
+++ b/apps/web/components/LinkViews/LinkComponents/LinkCard.tsx
@@ -166,8 +166,6 @@ export default function LinkCard({ link, columns, editMode }: Props) {
return (
<div
ref={setNodeRef}
- {...listeners}
- {...attributes}
className={cn(
"border border-solid border-neutral-content bg-base-200 shadow-md hover:shadow-none duration-100 rounded-xl relative group",
isLinkSelected && "border-primary bg-base-300",
@@ -188,6 +186,8 @@ export default function LinkCard({ link, columns, editMode }: Props) {
onClick={() =>
!editMode && openLink(link, user, () => setLinkModal(true))
}
+ {...listeners}
+ {...attributes}
>
{show.image && (
<div>
diff --git a/apps/web/components/LinkViews/LinkComponents/LinkList.tsx b/apps/web/components/LinkViews/LinkComponents/LinkList.tsx
index 6b52c8e3..68cfd239 100644
--- a/apps/web/components/LinkViews/LinkComponents/LinkList.tsx
+++ b/apps/web/components/LinkViews/LinkComponents/LinkList.tsx
@@ -115,8 +115,6 @@ export default function LinkCardCompact({ link, editMode }: Props) {
<>
<div
ref={setNodeRef}
- {...attributes}
- {...listeners}
className={cn(
"rounded-md border relative group items-center flex",
selectedStyle,
@@ -137,6 +135,8 @@ export default function LinkCardCompact({ link, editMode }: Props) {
onClick={() =>
!editMode && openLink(link, user, () => setLinkModal(true))
}
+ {...attributes}
+ {...listeners}
>
{show.icon && (
<div className="shrink-0">
diff --git a/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx b/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx
index 60215b17..d692f287 100644
--- a/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx
+++ b/apps/web/components/LinkViews/LinkComponents/LinkMasonry.tsx
@@ -168,8 +168,6 @@ export default function LinkMasonry({ link, editMode, columns }: Props) {
return (
<div
ref={setNodeRef}
- {...listeners}
- {...attributes}
className={cn(
"border border-solid border-neutral-content bg-base-200 shadow-md hover:shadow-none duration-100 rounded-xl relative group",
isLinkSelected && "border-primary bg-base-300"
@@ -188,6 +186,8 @@ export default function LinkMasonry({ link, editMode, columns }: Props) {
onClick={() =>
!editMode && openLink(link, user, () => setLinkModal(true))
}
+ {...listeners}
+ {...attributes}
>
{show.image && formatAvailable(link, "preview") && (
<div>