⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
add name of project on hovering when sidebar is close (#99)
Yuvraj Rathod1ff7106b0092
diff --git a/apps/web/src/components/common/sidebar/sections/projects/index.tsx b/apps/web/src/components/common/sidebar/sections/projects/index.tsxindex 49d7347df..39ad1d5a1 100644--- a/apps/web/src/components/common/sidebar/sections/projects/index.tsx+++ b/apps/web/src/components/common/sidebar/sections/projects/index.tsx@@ -88,7 +88,7 @@ function Projects({ workspaceId }: ProjectsProps) {key={project.id}onClick={() => handleSelectProject(project)}className={cn(- "w-full px-4 py-2 rounded-md flex items-center text-sm transition-all group",+ "w-full px-4 py-2 rounded-md flex items-center text-sm transition-all group relative",!isSidebarOpened && "px-3",!isSidebarOpened && "justify-center px-2",location.pathname.includes("/board") &&@@ -106,6 +106,20 @@ function Projects({ workspaceId }: ProjectsProps) {),},)}++ {!isSidebarOpened && (+ <div+ className={cn(+ "fixed z-[100] px-2 py-1 bg-black text-white text-xs rounded-md whitespace-nowrap opacity-0 transition-opacity",+ "group-hover:opacity-100",+ )}+ >+ {project.name.length < 5+ ? project.name+ : `${project.name.substring(0, 5)}...`}+ </div>+ )}+{isSidebarOpened && project.name}</button>))