Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(ux): make the sidebar wider on larger screens

Mohamed Bassemf417b90039de
diff --git a/apps/web/components/dashboard/header/Header.tsx b/apps/web/components/dashboard/header/Header.tsx
index 3bcdbbe7..3dd37346 100644
--- a/apps/web/components/dashboard/header/Header.tsx
+++ b/apps/web/components/dashboard/header/Header.tsx
@@ -15,7 +15,7 @@ export default async function Header() {
return (
<header className="sticky left-0 right-0 top-0 z-50 flex h-16 items-center justify-between overflow-x-auto overflow-y-hidden bg-background p-4 shadow">
<div className="hidden items-center sm:flex">
- <Link href={"/dashboard/bookmarks"} className="w-56">
+ <Link href={"/dashboard/bookmarks"} className="w-56 xl:w-[17rem]">
<KarakeepLogo height={38} />
</Link>
</div>
diff --git a/apps/web/components/shared/sidebar/Sidebar.tsx b/apps/web/components/shared/sidebar/Sidebar.tsx
index 3f4780e7..bbc4c2e2 100644
--- a/apps/web/components/shared/sidebar/Sidebar.tsx
+++ b/apps/web/components/shared/sidebar/Sidebar.tsx
@@ -18,7 +18,7 @@ export default async function Sidebar({
const { t } = await useTranslation();
return (
- <aside className="flex h-[calc(100vh-64px)] w-60 flex-col gap-5 border-r p-4">
+ <aside className="flex h-[calc(100vh-64px)] w-60 flex-col gap-5 border-r p-4 xl:w-72">
<div>
<ul className="space-y-2 text-sm">
{items(t).map((item) => (
diff --git a/tooling/tailwind/globals.css b/tooling/tailwind/globals.css
index 45589abf..630269e4 100644
--- a/tooling/tailwind/globals.css
+++ b/tooling/tailwind/globals.css
@@ -86,17 +86,29 @@
}
.sidebar-scrollbar::-webkit-scrollbar-thumb {
- background: hsl(var(--muted-foreground) / 0.15);
+ background: transparent;
border-radius: 3px;
+ transition: background-color 150ms ease;
}
- .sidebar-scrollbar::-webkit-scrollbar-thumb:hover {
+ .sidebar-scrollbar:hover::-webkit-scrollbar-thumb,
+ .sidebar-scrollbar:focus-within::-webkit-scrollbar-thumb {
+ background: hsl(var(--muted-foreground) / 0.15);
+ }
+
+ .sidebar-scrollbar:hover::-webkit-scrollbar-thumb:hover,
+ .sidebar-scrollbar:focus-within::-webkit-scrollbar-thumb:hover {
background: hsl(var(--muted-foreground) / 0.25);
}
/* Firefox scrollbar for sidebar */
.sidebar-scrollbar {
scrollbar-width: thin;
+ scrollbar-color: transparent transparent;
+ }
+
+ .sidebar-scrollbar:hover,
+ .sidebar-scrollbar:focus-within {
scrollbar-color: hsl(var(--muted-foreground) / 0.15) transparent;
}
}