Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix: making sidebar fixed

Andrej6761a4f9930d
diff --git a/apps/web/src/components/common/sidebar/index.tsx b/apps/web/src/components/common/sidebar/index.tsx
index 48aaa8520..163593ba3 100644
--- a/apps/web/src/components/common/sidebar/index.tsx
+++ b/apps/web/src/components/common/sidebar/index.tsx
@@ -18,7 +18,6 @@ export function Sidebar() {
}}
className={cn(
"fixed inset-0 bg-black/50 z-30 lg:hidden",
- "h-[100dvh]",
isSidebarOpened ? "opacity-100" : "opacity-0 pointer-events-none",
"transition-opacity duration-300 ease-in-out",
)}
@@ -28,20 +27,20 @@ export function Sidebar() {
<div
className={cn(
- "flex bg-white dark:bg-zinc-900 border-r border-zinc-200 dark:border-zinc-800 h-screen flex-col",
+ "flex flex-col bg-white dark:bg-zinc-900 border-r border-zinc-200 dark:border-zinc-800",
"transition-all duration-300 ease-in-out",
- "min-h-screen",
- "fixed lg:relative top-0 left-0",
+ "fixed lg:relative top-0 left-0 bottom-0",
"z-30",
- "h-[100dvh]",
- "max-h-[100dvh]",
- "pb-safe",
!isSidebarOpened ? "w-16" : "w-64",
)}
>
<SidebarHeader />
- <SidebarContent />
- <SidebarFooter />
+ <div className="flex-1 overflow-y-auto">
+ <SidebarContent />
+ </div>
+ <div className="relative z-10">
+ <SidebarFooter />
+ </div>
</div>
</>
);
diff --git a/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/board.tsx b/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
index 8f5111a6b..40a7ed50c 100644
--- a/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
+++ b/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
@@ -33,7 +33,7 @@ function RouteComponent() {
}
return (
- <div className="h-full p-6">
+ <div className="h-full pr-6 pt-6 pb-6">
<KanbanBoard />
</div>
);