Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: app sidebar collapsed state alignment improvement (#3976)

Anmol Singh Bhatia36bc7bf996fb
diff --git a/web/components/workspace/sidebar-menu.tsx b/web/components/workspace/sidebar-menu.tsx
index 69860dea25..bc955a7c29 100644
--- a/web/components/workspace/sidebar-menu.tsx
+++ b/web/components/workspace/sidebar-menu.tsx
@@ -55,10 +55,11 @@ export const WorkspaceSidebarMenu = observer(() => {
isMobile={isMobile}
>
<div
- className={`group flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-sm font-medium outline-none ${link.highlight(router.asPath, `/${workspaceSlug}`)
+ className={`group flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-sm font-medium outline-none ${
+ link.highlight(router.asPath, `/${workspaceSlug}`)
? "bg-custom-primary-100/10 text-custom-primary-100"
: "text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80 focus:bg-custom-sidebar-background-80"
- } ${themeStore?.sidebarCollapsed ? "justify-center" : ""}`}
+ } ${themeStore?.sidebarCollapsed ? "justify-center" : ""}`}
>
{
<link.Icon
@@ -67,7 +68,7 @@ export const WorkspaceSidebarMenu = observer(() => {
})}
/>
}
- <p className="leading-5">{!themeStore?.sidebarCollapsed && link.label}</p>
+ {!themeStore?.sidebarCollapsed && <p className="leading-5">{link.label}</p>}
{!themeStore?.sidebarCollapsed && link.key === "active-cycles" && (
<Crown className="h-3.5 w-3.5 text-amber-400" />
)}