From b8b0a444139358bdf7707034e3a7437babc69db8 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 5 Mar 2024 02:26:10 +0000
Subject: feature: Preview page for the stored content of links

---
 packages/web/app/dashboard/bookmarks/components/LinkCard.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'packages/web/app/dashboard/bookmarks/components/LinkCard.tsx')

diff --git a/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx b/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
index 6d8e0bdc..5af11aa3 100644
--- a/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
+++ b/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
@@ -12,7 +12,7 @@ import { ZBookmark } from "@/lib/types/api/bookmarks";
 import Link from "next/link";
 import BookmarkOptions from "./BookmarkOptions";
 import { api } from "@/lib/trpc";
-import { Star } from "lucide-react";
+import { Maximize2, Star } from "lucide-react";
 import TagList from "./TagList";
 
 function isStillCrawling(bookmark: ZBookmark) {
@@ -91,7 +91,7 @@ export default function LinkCard({
           <TagList bookmark={bookmark} loading={isStillTagging(bookmark)} />
         </ImageCardBody>
         <ImageCardFooter>
-          <div className="flex justify-between text-gray-500">
+          <div className="mt-1 flex justify-between text-gray-500">
             <div className="my-auto">
               <Link
                 className="line-clamp-1 hover:text-black"
@@ -109,6 +109,12 @@ export default function LinkCard({
                   fill="#ebb434"
                 />
               )}
+              <Link
+                className="my-auto block px-2"
+                href={`/dashboard/preview/${bookmark.id}`}
+              >
+                <Maximize2 size="20" />
+              </Link>
               <BookmarkOptions bookmark={bookmark} />
             </div>
           </div>
-- 
cgit v1.2.3-70-g09d2

