diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index 767875d..a3c2d72 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -150,7 +150,7 @@ export default function LinkCard({ link, count, className }: Props) { setExpandDropdown({ x: e.clientX, y: e.clientY }); }} id={"expand-dropdown" + link.id} - className="text-gray-500 dark:text-gray-300 inline-flex rounded-md cursor-pointer hover:bg-slate-200 dark:hover:bg-neutral-700 absolute right-5 top-5 z-10 duration-100 p-1" + className="text-gray-500 dark:text-gray-300 inline-flex rounded-md cursor-pointer hover:bg-slate-200 dark:hover:bg-neutral-700 absolute right-4 top-4 z-10 duration-100 p-1" > router.push("/links/" + link.id)} - className="flex items-start cursor-pointer gap-5 sm:gap-10 h-full w-full p-5" + className="flex items-start cursor-pointer gap-5 sm:gap-10 h-full w-full p-4" > {url && account.displayLinkIcons && ( { const target = e.target as HTMLElement; @@ -208,6 +208,27 @@ export default function LinkCard({ link, count, className }: Props) { {collection?.name}

+ + {/* {link.tags[0] ? ( +
+
+ {link.tags.map((e, i) => ( + { + e.stopPropagation(); + }} + className="px-2 bg-sky-200 text-black dark:text-white dark:bg-sky-900 text-xs rounded-3xl cursor-pointer hover:opacity-60 duration-100 truncate max-w-[19rem]" + > + {e.name} + + ))} +
+
+
+ ) : undefined} */} + {e.name} diff --git a/layouts/LinkLayout.tsx b/layouts/LinkLayout.tsx index d45a111..b1bc511 100644 --- a/layouts/LinkLayout.tsx +++ b/layouts/LinkLayout.tsx @@ -100,7 +100,7 @@ export default function LinkLayout({ children }: Props) { }` ); } else { - router.push(`/collections/${linkCollection?.id}`); + router.push(`/dashboard`); } }} className="inline-flex gap-1 hover:opacity-60 items-center select-none cursor-pointer p-2 lg:p-0 lg:px-1 lg:my-2 text-gray-500 dark:text-gray-300 rounded-md duration-100" @@ -110,7 +110,9 @@ export default function LinkLayout({ children }: Props) { to{" "} - {linkCollection?.name || link?.collection?.name} + {router.pathname.startsWith("/public") + ? linkCollection?.name || link?.collection?.name + : "Dashboard"} diff --git a/pages/links/[id].tsx b/pages/links/[id].tsx index 615f26b..a28b45d 100644 --- a/pages/links/[id].tsx +++ b/pages/links/[id].tsx @@ -238,7 +238,7 @@ export default function Index() {

{e.name}

diff --git a/pages/public/links/[id].tsx b/pages/public/links/[id].tsx index ea01de3..15aec43 100644 --- a/pages/public/links/[id].tsx +++ b/pages/public/links/[id].tsx @@ -17,7 +17,6 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBoxesStacked, faFolder } from "@fortawesome/free-solid-svg-icons"; import useModalStore from "@/store/modals"; import { useSession } from "next-auth/react"; -import { isProbablyReaderable } from "@mozilla/readability"; type LinkContent = { title: string; diff --git a/pages/settings/api.tsx b/pages/settings/api.tsx index aa56b1c..220ba7b 100644 --- a/pages/settings/api.tsx +++ b/pages/settings/api.tsx @@ -54,12 +54,12 @@ export default function Api() { return ( -

API Keys

+

API Keys (Soon)


-
+
Status: Under Development