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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
style: make erp with panels more responsive
Brad Barbinc82df29a5ee2
diff --git a/apps/carbon/app/components/Layout/Panels.tsx b/apps/carbon/app/components/Layout/Panels.tsxindex a93a0b1c1a..d337eee281 100644--- a/apps/carbon/app/components/Layout/Panels.tsx+++ b/apps/carbon/app/components/Layout/Panels.tsx@@ -37,8 +37,14 @@ interface PanelProviderProps {}export function PanelProvider({ children }: PanelProviderProps) {- const [isExplorerCollapsed, setIsExplorerCollapsed] = useState(false);- const [isPropertiesCollapsed, setIsPropertiesCollapsed] = useState(false);+ const isBrowser = typeof window !== "undefined";++ const [isExplorerCollapsed, setIsExplorerCollapsed] = useState(+ isBrowser ? window.innerWidth < 768 : false+ );+ const [isPropertiesCollapsed, setIsPropertiesCollapsed] = useState(+ isBrowser ? window.innerWidth < 1024 : false+ );const value = {isExplorerCollapsed,