Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: fix primary navigation overflow

Brad Barbin4f0ac508b2e8
diff --git a/apps/carbon/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/carbon/app/components/Layout/Navigation/PrimaryNavigation.tsx
index e669303fc7..0fdea6bfc1 100644
--- a/apps/carbon/app/components/Layout/Navigation/PrimaryNavigation.tsx
+++ b/apps/carbon/app/components/Layout/Navigation/PrimaryNavigation.tsx
@@ -44,36 +44,38 @@ const PrimaryNavigation = () => {
onMouseLeave={navigationPanel.onClose}
>
<VStack spacing={1} className="flex flex-col justify-start h-full px-2">
- <Button isIcon asChild variant="ghost" size="lg">
- <Link to="/">
- {company?.logo ? (
- <img
- src={company.logo}
- alt={`${company.name} logo`}
- className="w-full h-auto rounded"
- />
- ) : (
- <BsFillHexagonFill />
- )}
- </Link>
- </Button>
+ <VStack spacing={1}>
+ <Button isIcon asChild variant="ghost" size="lg">
+ <Link to="/">
+ {company?.logo ? (
+ <img
+ src={company.logo}
+ alt={`${company.name} logo`}
+ className="w-full h-auto rounded"
+ />
+ ) : (
+ <BsFillHexagonFill />
+ )}
+ </Link>
+ </Button>
- {links.map((link) => {
- const m = getModule(link.to);
+ {links.map((link) => {
+ const m = getModule(link.to);
- const moduleMatches = matchedModules.has(m);
+ const moduleMatches = matchedModules.has(m);
- const isActive = currentModule === m || moduleMatches;
- return (
- <NavigationIconLink
- key={link.name}
- link={link}
- isActive={isActive}
- isOpen={navigationPanel.isOpen}
- onClick={navigationPanel.onClose}
- />
- );
- })}
+ const isActive = currentModule === m || moduleMatches;
+ return (
+ <NavigationIconLink
+ key={link.name}
+ link={link}
+ isActive={isActive}
+ isOpen={navigationPanel.isOpen}
+ onClick={navigationPanel.onClose}
+ />
+ );
+ })}
+ </VStack>
</VStack>
</nav>
</div>