From 900d576c54f8ee734a9652dcc2e30ced480408a2 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Thu, 29 Feb 2024 11:08:06 +0000
Subject: fix: Open links in new tab

---
 packages/web/app/dashboard/bookmarks/components/LinkCard.tsx | 8 ++++++--
 1 file changed, 6 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 612efb9b..0a808506 100644
--- a/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
+++ b/packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
@@ -70,7 +70,7 @@ export default function LinkCard({
       </Link>
       <ImageCardContent>
         <ImageCardTitle>
-          <Link className="line-clamp-2" href={link.url}>
+          <Link className="line-clamp-2" href={link.url} target="_blank">
             {link?.title ?? parsedUrl.host}
           </Link>
         </ImageCardTitle>
@@ -82,7 +82,11 @@ export default function LinkCard({
         <ImageCardFooter>
           <div className="flex justify-between text-gray-500">
             <div className="my-auto">
-              <Link className="line-clamp-1 hover:text-black" href={link.url}>
+              <Link
+                className="line-clamp-1 hover:text-black"
+                href={link.url}
+                target="_blank"
+              >
                 {parsedUrl.host}
               </Link>
             </div>
-- 
cgit v1.2.3-70-g09d2

