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: move search to right of top menubar

Brad Barbin6e9bf52b42bb
diff --git a/apps/carbon/app/components/Breadcrumb.tsx b/apps/carbon/app/components/Breadcrumb.tsx
index 9ead67b83c..b40ff26794 100644
--- a/apps/carbon/app/components/Breadcrumb.tsx
+++ b/apps/carbon/app/components/Breadcrumb.tsx
@@ -3,6 +3,7 @@ import type { LinkProps } from "@remix-run/react";
import { Link } from "@remix-run/react";
import type { ComponentProps } from "react";
import { cloneElement, forwardRef } from "react";
+import { LuChevronRight } from "react-icons/lu";
const Breadcrumbs = forwardRef<
HTMLElement,
@@ -43,7 +44,11 @@ const BreadcrumbItem = forwardRef<
className={cn("inline-flex items-center", className)}
{...props}
>
- {!isFirstChild && <span className="text-muted-foreground">/</span>}
+ {!isFirstChild && (
+ <span className="text-muted-foreground">
+ <LuChevronRight />
+ </span>
+ )}
{children}
</li>
));
diff --git a/apps/carbon/app/components/Layout/Topbar/Topbar.tsx b/apps/carbon/app/components/Layout/Topbar/Topbar.tsx
index 96e76e8a63..23be23397f 100644
--- a/apps/carbon/app/components/Layout/Topbar/Topbar.tsx
+++ b/apps/carbon/app/components/Layout/Topbar/Topbar.tsx
@@ -4,18 +4,18 @@ import { usePermissions } from "~/hooks";
import AvatarMenu from "./AvatarMenu";
import Breadcrumbs from "./Breadcrumbs";
import CreateMenu from "./CreateMenu";
-import HelpMenu from "./HelpMenu";
import ModeSwitcher from "./ModeSwitcher";
const Topbar = () => {
const permissions = usePermissions();
return (
- <div className="grid bg-background text-foreground border-b border-border px-4 top-0 sticky z-10 space-x-4 grid-cols-[auto_1fr] sm:grid-cols-[1fr_auto_1fr] items-center">
+ <div className="flex bg-background text-foreground border-b border-border px-4 top-0 sticky z-10 space-x-4 justify-between items-center">
<Breadcrumbs />
- {permissions.is("employee") ? <Search /> : <div />}
- <HStack spacing={1} className="justify-end py-2">
+
+ <HStack spacing={2} className="justify-end py-2">
+ {permissions.is("employee") ? <Search /> : <div />}
<CreateMenu />
- <HelpMenu />
+ {/* <HelpMenu /> */}
<ModeSwitcher />
<AvatarMenu />
</HStack>
diff --git a/apps/carbon/app/components/Search/Search/Search.tsx b/apps/carbon/app/components/Search/Search/Search.tsx
index 455bebce55..6c03ea50d9 100644
--- a/apps/carbon/app/components/Search/Search/Search.tsx
+++ b/apps/carbon/app/components/Search/Search/Search.tsx
@@ -289,7 +289,7 @@ const SearchButton = () => {
<Button
leftIcon={<LuSearch />}
variant="secondary"
- className="w-[145px] px-2 text-muted-foreground "
+ className="w-[200px] px-2 text-muted-foreground "
onClick={searchModal.onOpen}
>
<HStack className="w-full">