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.

fix: show search bar instead of suggestion button on mobile in ERP

Claude544e4255d8cd
diff --git a/apps/erp/app/components/Layout/Topbar/Search.tsx b/apps/erp/app/components/Layout/Topbar/Search.tsx
index 3b88e440f8..ec66c7b0cf 100644
--- a/apps/erp/app/components/Layout/Topbar/Search.tsx
+++ b/apps/erp/app/components/Layout/Topbar/Search.tsx
@@ -445,7 +445,7 @@ const SearchButton = () => {
});
return (
- <div className="hidden sm:block">
+ <div>
<Button
leftIcon={<LuSearch />}
variant="secondary"
@@ -454,7 +454,7 @@ const SearchButton = () => {
>
<HStack className="w-full">
<div className="flex flex-grow">Search</div>
- <ShortcutKey variant="small" shortcut={shortcut} />
+ <ShortcutKey variant="small" shortcut={shortcut} className="hidden sm:grid" />
</HStack>
</Button>
<SearchModal />
diff --git a/apps/erp/app/components/Layout/Topbar/Topbar.tsx b/apps/erp/app/components/Layout/Topbar/Topbar.tsx
index 8b42acde4d..366e51d893 100644
--- a/apps/erp/app/components/Layout/Topbar/Topbar.tsx
+++ b/apps/erp/app/components/Layout/Topbar/Topbar.tsx
@@ -26,7 +26,9 @@ const Topbar = () => {
{permissions.is("employee") ? <Search /> : <div />}
</div>
<HStack spacing={1} className="flex-1 justify-end py-2">
- <Suggestion />
+ <div className="hidden sm:block">
+ <Suggestion />
+ </div>
<CreateMenu
trigger={
<IconButton