diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-11-27 18:57:50 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-11-27 18:57:50 +0000 |
| commit | 5bea5d39f8e5d6245bc7e6033bba220ddb561f4c (patch) | |
| tree | 78291ebdc70ce3dc57bb60ca852003d7e5f03b53 | |
| parent | 6821257def80ffa655b6feb893dd74ca2a13b9f1 (diff) | |
| download | karakeep-5bea5d39f8e5d6245bc7e6033bba220ddb561f4c.tar.zst | |
feat: improve font and colors of sidebar items
Diffstat (limited to '')
| -rw-r--r-- | apps/web/components/dashboard/sidebar/AllLists.tsx | 21 | ||||
| -rw-r--r-- | apps/web/components/shared/sidebar/SidebarItem.tsx | 6 |
2 files changed, 16 insertions, 11 deletions
diff --git a/apps/web/components/dashboard/sidebar/AllLists.tsx b/apps/web/components/dashboard/sidebar/AllLists.tsx index 50a06106..1cc3f3a5 100644 --- a/apps/web/components/dashboard/sidebar/AllLists.tsx +++ b/apps/web/components/dashboard/sidebar/AllLists.tsx @@ -4,12 +4,11 @@ import { useCallback, useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import SidebarItem from "@/components/shared/sidebar/SidebarItem"; -import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { CollapsibleTriggerTriangle } from "@/components/ui/collapsible"; import { useTranslation } from "@/lib/i18n/client"; import { cn } from "@/lib/utils"; -import { CirclePlus, MoreHorizontal } from "lucide-react"; +import { MoreHorizontal, Plus } from "lucide-react"; import type { ZBookmarkList } from "@karakeep/shared/types/lists"; import { ZBookmarkListTreeNode } from "@karakeep/shared/utils/listUtils"; @@ -34,11 +33,16 @@ export default function AllLists({ return ( <ul className="max-h-full gap-y-2 overflow-auto text-sm"> - <li className="flex justify-between pb-3 font-bold"> - <p>Lists</p> + <li className="flex justify-between pb-3"> + <p className="text-xs uppercase tracking-wider text-muted-foreground"> + Lists + </p> <EditListModal> <Link href="#"> - <CirclePlus className="mr-2 size-5" strokeWidth={1.5} /> + <Plus + className="mr-2 size-4 text-muted-foreground" + strokeWidth={1.5} + /> </Link> </EditListModal> </li> @@ -98,10 +102,9 @@ export default function AllLists({ )} /> - <Badge - variant="outline" + <span className={cn( - "font-normal opacity-100 transition-opacity duration-100 group-hover:opacity-0", + "px-2.5 text-xs font-light text-muted-foreground opacity-100 transition-opacity duration-100 group-hover:opacity-0", selectedListId == node.item.id || numBookmarks === undefined ? "opacity-0" @@ -109,7 +112,7 @@ export default function AllLists({ )} > {numBookmarks} - </Badge> + </span> </Button> </ListOptions> } diff --git a/apps/web/components/shared/sidebar/SidebarItem.tsx b/apps/web/components/shared/sidebar/SidebarItem.tsx index cfbd7253..e602a435 100644 --- a/apps/web/components/shared/sidebar/SidebarItem.tsx +++ b/apps/web/components/shared/sidebar/SidebarItem.tsx @@ -28,8 +28,10 @@ export default function SidebarItem({ return ( <li className={cn( - "relative flex justify-between rounded-lg hover:bg-accent", - path == currentPath ? "bg-accent/50" : "", + "relative flex justify-between rounded-lg text-sm transition-colors hover:bg-accent", + path == currentPath + ? "bg-accent/50 text-foreground" + : "text-muted-foreground", className, )} style={style} |
