Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: fixed some light mood ui issue
ashrafchowdury6e731b01a48c
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsxindex 925c9553..102f69df 100644--- a/components/Sidebar.tsx+++ b/components/Sidebar.tsx@@ -23,10 +23,10 @@ export default function Sidebar() {{/* sidebar for mobile */}<nav>- <div className="sticky top-0 z-40 mb-1 flex h-14 shrink-0 items-center gap-x-4 border-b border-gray-50/90 bg-gray-50 dark:border-black/10 dark:bg-black/95 px-4 sm:gap-x-6 sm:px-6 lg:px-8 lg:hidden">+ <div className="sticky top-0 z-40 mb-1 flex items-center h-14 shrink-0 border-gray-50/90 bg-gray-50 dark:border-black/10 dark:bg-black/95 px-6 sm:px-12 border-b dark:border-none lg:hidden"><Sheet><SheetTrigger asChild>- <button className="-m-2.5 p-2.5 text-muted-foreground lg:hidden">+ <button className="mt-1 p-0.5 text-muted-foreground lg:hidden"><MenuIcon className="h-6 w-6" aria-hidden="true" /></button></SheetTrigger>diff --git a/components/documents/document-card.tsx b/components/documents/document-card.tsxindex 9f60a22d..1c5e73c1 100644--- a/components/documents/document-card.tsx+++ b/components/documents/document-card.tsx@@ -91,7 +91,7 @@ export default function DocumentsCard({};return (- <li className="group/row relative rounded-lg p-3 border-0 dark:bg-secondary ring-1 ring-gray-200 dark:ring-gray-700 transition-all hover:ring-gray-400 hover:dark:ring-gray-500 hover:bg-secondary sm:p-4 flex justify-between items-center">+ <li className="group/row relative rounded-lg p-3 border-0 dark:bg-secondary ring-1 ring-gray-200 dark:ring-gray-700 transition-all hover:ring-gray-300 hover:dark:ring-gray-500 hover:bg-secondary sm:p-4 flex justify-between items-center"><div className="min-w-0 flex shrink items-center space-x-2 sm:space-x-4"><div className="w-8 mx-0.5 sm:mx-1 text-center flex justify-center items-center">{document.type === "notion" ? (@@ -180,7 +180,7 @@ export default function DocumentsCard({<Buttonsize="icon"variant="ghost"- className="w-6 sm:w-7 h-6 sm:h-7 z-10 hover:bg-background duration-200 focus:!outline-none"+ className="w-6 sm:w-7 h-6 sm:h-7 z-10 hover:bg-white dark:hover:bg-gray-900 duration-200"><MoreVertical className="w-4 h-4 text-gray-400" /></Button>@@ -193,7 +193,7 @@ export default function DocumentsCard({<DropdownMenuItemonClick={() => handleDeleteDocument(document.id)}- className="flex items-center hover:!bg-red-500 hover:opacity-80 duration-200 cursor-pointer"+ className="flex items-center hover:!bg-red-600 dark:hover:!bg-red-500 hover:!text-white hover:opacity-80 duration-200 cursor-pointer"><TrashIcon className="w-4 h-4 mr-2" /> Delete Doc</DropdownMenuItem>diff --git a/components/layouts/app.tsx b/components/layouts/app.tsxindex 4d2a19b8..6e878f3a 100644--- a/components/layouts/app.tsx+++ b/components/layouts/app.tsx@@ -5,7 +5,7 @@ export default function AppLayout({ children }: { children: React.ReactNode }) {<div><div className="flex flex-col lg:flex-row min-h-screen bg-gray-50 dark:bg-black"><Sidebar />- <main className="grow w-full bg-white dark:bg-gray-900 ring-gray-200 dark:ring-gray-800">+ <main className="grow w-full bg-white dark:bg-gray-900 ring-gray-200 dark:ring-gray-800 lg:border-l dark:border-none">{children}</main></div>diff --git a/components/profile-menu.tsx b/components/profile-menu.tsxindex 9890782e..e523b7fb 100644--- a/components/profile-menu.tsx+++ b/components/profile-menu.tsx@@ -28,8 +28,8 @@ const ProfileMenu = ({ className, size }: ProfileMenuProps) => {<div className="flex justify-between items-center space-x-2">{status === "loading" ? (<div className="w-full flex items-center rounded-md gap-x-3 p-2">- <Skeleton className="h-8 w-9 rounded-full" />- {isSize && <Skeleton className="h-7 w-full" />}+ <Skeleton className="h-8 w-8 rounded-full" />+ {isSize && <Skeleton className="h-7 w-[90%]" />}</div>) : (<DropdownMenu>@@ -74,7 +74,7 @@ const ProfileMenu = ({ className, size }: ProfileMenuProps) => {<ahref="mailto:[email protected]"- className="flex items-center px-3 py-2 my-1 text-sm hover:bg-muted duration-200"+ className="flex items-center px-3 py-2 my-1 text-sm hover:bg-gray-200 dark:hover:bg-muted duration-200"><HelpCircle className="w-4 h-4 mr-2" />Need Help?@@ -86,7 +86,7 @@ const ProfileMenu = ({ className, size }: ProfileMenuProps) => {callbackUrl: `${window.location.origin}`,})}- className="flex items-center px-3 py-2 text-sm hover:bg-muted duration-200"+ className="flex items-center px-3 py-2 text-sm hover:bg-gray-200 dark:hover:bg-muted duration-200"href={""}><LogOut className="w-4 h-4 mr-2" />diff --git a/components/theme-toggle.tsx b/components/theme-toggle.tsxindex eb62ae58..00dff4b8 100644--- a/components/theme-toggle.tsx+++ b/components/theme-toggle.tsx@@ -19,7 +19,7 @@ export function ModeToggle() {return (<DropdownMenuSub>- <DropdownMenuSubTrigger className="w-full flex items-center px-3 !py-2 text-sm hover:bg-muted duration-200 rounded-none pr-2">+ <DropdownMenuSubTrigger className="w-full flex items-center px-3 !py-2 text-sm hover:!bg-gray-200 dark:hover:!bg-muted duration-200 rounded-none pr-2"><Palette className="w-4 h-4 mr-2" /> Themes</DropdownMenuSubTrigger><DropdownMenuPortal>diff --git a/components/ui/skeleton.tsx b/components/ui/skeleton.tsxindex 01b8b6d4..cb0d427f 100644--- a/components/ui/skeleton.tsx+++ b/components/ui/skeleton.tsx@@ -6,10 +6,13 @@ function Skeleton({}: React.HTMLAttributes<HTMLDivElement>) {return (<div- className={cn("animate-pulse rounded-md bg-muted", className)}+ className={cn(+ "animate-pulse rounded-md bg-gray-200 dark:bg-muted",+ className,+ )}{...props}/>- )+ );}export { Skeleton }diff --git a/pages/documents/index.tsx b/pages/documents/index.tsxindex 89103b14..93b054ef 100644--- a/pages/documents/index.tsx+++ b/pages/documents/index.tsx@@ -1,7 +1,7 @@import useDocuments from "@/lib/swr/use-documents";import { useTeam } from "@/context/team-context";import DocumentCard from "@/components/documents/document-card";-import Skeleton from "@/components/Skeleton";+import { Skeleton } from "@/components/ui/skeleton";import { PlusIcon } from "@heroicons/react/24/solid";import { AddDocumentModal } from "@/components/documents/add-document-modal";import { Separator } from "@/components/ui/separator";