diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-07 22:12:18 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-07 22:12:18 +0000 |
| commit | cdc05f85a6dc676e8af1227a56f65d6452488d82 (patch) | |
| tree | b3d1e133d5435e129637067749d0b7e6e55b6c01 /web/app | |
| parent | 8970b3a5375ccfd9b41c8a08722a2fc6bbbe3af9 (diff) | |
| download | karakeep-cdc05f85a6dc676e8af1227a56f65d6452488d82.tar.zst | |
[feature] Render tags in the link card
Diffstat (limited to 'web/app')
| -rw-r--r-- | web/app/bookmarks/components/LinkCard.tsx | 9 | ||||
| -rw-r--r-- | web/app/bookmarks/page.tsx | 5 | ||||
| -rw-r--r-- | web/app/layout.tsx | 4 |
3 files changed, 15 insertions, 3 deletions
diff --git a/web/app/bookmarks/components/LinkCard.tsx b/web/app/bookmarks/components/LinkCard.tsx index 907acd19..da59d9da 100644 --- a/web/app/bookmarks/components/LinkCard.tsx +++ b/web/app/bookmarks/components/LinkCard.tsx @@ -1,5 +1,6 @@ "use client"; +import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { DropdownMenu, @@ -73,7 +74,13 @@ export default function LinkCard({ link }: { link: ZBookmarkedLink }) { {link.details?.title ?? parsedUrl.host} </Link> </ImageCardTitle> - <ImageCardBody /> + <ImageCardBody className="py-2 overflow-clip"> + {link.tags.map((t) => ( + <Badge variant="default" className="bg-gray-300 text-gray-500" key={t.id}> + #{t.name} + </Badge> + ))} + </ImageCardBody> <ImageCardFooter> <div className="flex justify-between text-gray-500"> <div className="my-auto"> diff --git a/web/app/bookmarks/page.tsx b/web/app/bookmarks/page.tsx index f0efa2e4..89a26122 100644 --- a/web/app/bookmarks/page.tsx +++ b/web/app/bookmarks/page.tsx @@ -1,5 +1,10 @@ import AddLink from "./components/AddLink"; import LinksGrid from "./components/LinksGrid"; +import type { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Remember - Bookmarks", +}; export default async function Bookmarks() { return ( diff --git a/web/app/layout.tsx b/web/app/layout.tsx index a6543b1c..a2d34046 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -7,8 +7,8 @@ import { Toaster } from "@/components/ui/toaster"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Remember", + description: "Your AI powered second brain", }; export default function RootLayout({ |
