A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feature: Clicking preview for image assets brings up the details modal (#147)
Caricbc8dded9970
diff --git a/apps/web/components/dashboard/bookmarks/AssetCard.tsx b/apps/web/components/dashboard/bookmarks/AssetCard.tsxindex 40f435de..f110e0c4 100644--- a/apps/web/components/dashboard/bookmarks/AssetCard.tsx+++ b/apps/web/components/dashboard/bookmarks/AssetCard.tsx@@ -1,6 +1,7 @@"use client";import Image from "next/image";+import Link from "next/link";import { api } from "@/lib/trpc";import type {@@ -23,12 +24,14 @@ function AssetImage({switch (bookmarkedAsset.assetType) {case "image": {return (- <Image- alt="asset"- src={getAssetUrl(bookmarkedAsset.assetId)}- fill={true}- className={className}- />+ <Link href={`/dashboard/preview/${bookmark.id}`}>+ <Image+ alt="asset"+ src={getAssetUrl(bookmarkedAsset.assetId)}+ fill={true}+ className={className}+ />+ </Link>);}case "pdf": {