⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
changes + improvements
Danielfdbe2e0d9f35
diff --git a/components/Dropdown.tsx b/components/Dropdown.tsxindex 7da33c49..dffec268 100644--- a/components/Dropdown.tsx+++ b/components/Dropdown.tsx@@ -24,7 +24,7 @@ export default function Dropdown({ onClickOutside, className, items }: Props) {return (<ClickAwayHandleronClickOutside={onClickOutside}- className={`${className} py-1 shadow-md border border-sky-100 bg-gray-50 rounded-md flex flex-col z-10`}+ className={`${className} py-1 shadow-md border border-sky-100 bg-gray-50 rounded-md flex flex-col z-20`}>{items.map((e, i) => {const inner = (diff --git a/components/Modal/Link/LinkDetails.tsx b/components/Modal/Link/LinkDetails.tsxindex 558a9d1f..2dc3f4c6 100644--- a/components/Modal/Link/LinkDetails.tsx+++ b/components/Modal/Link/LinkDetails.tsx@@ -194,11 +194,9 @@ export default function LinkDetails({ link }: Props) {</div>{link.description && (<>- <hr className="my-3" />- <div className="text-sky-900 max-h-[20rem] rounded-md overflow-y-auto hyphens-auto">+ <div className="text-gray-500 max-h-[20rem] my-3 rounded-md overflow-y-auto hyphens-auto">{link.description}</div>- <hr className="my-3" /></>)}diff --git a/layouts/MainLayout.tsx b/layouts/MainLayout.tsxindex 6e099d05..91351495 100644--- a/layouts/MainLayout.tsx+++ b/layouts/MainLayout.tsx@@ -1,11 +1,12 @@import Navbar from "@/components/Navbar";import Sidebar from "@/components/Sidebar";-import { ReactNode } from "react";+import { ReactNode, useEffect } from "react";import { useSession } from "next-auth/react";import Loader from "../components/Loader";import useRedirect from "@/hooks/useRedirect";import { useRouter } from "next/router";import ModalManagement from "@/components/ModalManagement";+import useModalStore from "@/store/modals";interface Props {children: ReactNode;@@ -16,6 +17,13 @@ export default function MainLayout({ children }: Props) {const router = useRouter();const redirect = useRedirect();const routeExists = router.route === "/_error" ? false : true;+ const { modal } = useModalStore();++ useEffect(() => {+ modal+ ? (document.body.style.overflow = "hidden")+ : (document.body.style.overflow = "auto");+ }, [modal]);if (status === "authenticated" && !redirect && routeExists)return (