From a9f6e92a97a3d9ca756bf2fd743b09da1b167473 Mon Sep 17 00:00:00 2001 From: sai80082 Date: Tue, 7 Apr 2026 00:25:15 +0530 Subject: [PATCH] fix: update AssetGrid to remove tags and add link to open in Immich directly in photo album --- src/components/shared/AssetGrid.tsx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/shared/AssetGrid.tsx b/src/components/shared/AssetGrid.tsx index 9d205c4..f80ba87 100644 --- a/src/components/shared/AssetGrid.tsx +++ b/src/components/shared/AssetGrid.tsx @@ -176,16 +176,6 @@ const AssetGrid = forwardRef(({ assets, isInternal isSelected: selectedIds.includes(p.id), isVideo: p.type === "VIDEO", duration: p.duration != null ? String(p.duration) : undefined, - tags: [ - { - title: "Immich Link", - value: ( - - Open in Immich - - ), - }, - ], })); }, [assets, selectedIds, exImmichUrl]); @@ -310,8 +300,22 @@ const AssetGrid = forwardRef(({ assets, isInternal handleClick(index, photo, event)} - render={{ image: renderImage }} + render={{ + image: renderImage, + extras: (_, { photo }) => ( + e.stopPropagation()} + > + Open in Immich + + ), + }} /> );