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 buttons more ergonomic in MES
Brad Barbine628dd2172a7
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex bc1cb1f108..1463b422e9 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -699,7 +699,7 @@ export const JobOperation = ({machineProductionEvent={machineProductionEvent}hasActiveEvents={hasActiveEvents}/>- <div className="flex items-center gap-2 justify-center">+ <div className="flex flex-row md:flex-col items-center gap-2 justify-center">{/* <IconButtonWithTooltipicon={<FaRedoAlt className="text-accent-foreground group-hover:text-accent-foreground/80" />@@ -1220,7 +1220,7 @@ function Controls({return (<divclassName={cn(- "flex flex-col md:absolute p-2 top-[calc(var(--header-height)*2-2px)] right-0 w-full md:w-[var(--controls-width)] md:min-h-[200px] z-1 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 md:border-l border-y md:rounded-bl-lg",+ "flex flex-col md:absolute p-2 top-[calc(var(--header-height)*2-2px)] right-0 w-full md:w-[var(--controls-width)] md:min-h-[180px] z-1 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 md:border-l border-y md:rounded-bl-lg",className)}>@@ -1274,7 +1274,7 @@ function IconButtonWithTooltip({<ButtonWithTooltip{...props}tooltip={tooltip}- className="size-12 md:size-16 flex flex-row items-center gap-2 justify-center bg-accent rounded-full shadow-lg hover:cursor-pointer hover:shadow-xl hover:accent hover:scale-105 transition-all disabled:cursor-not-allowed disabled:bg-muted"+ className="size-16 text-xl md:text-lg md:size-[8dvh] flex flex-row items-center gap-2 justify-center bg-accent rounded-full shadow-lg hover:cursor-pointer hover:shadow-xl hover:accent hover:scale-105 transition-all disabled:cursor-not-allowed disabled:bg-muted">{icon}</ButtonWithTooltip>diff --git a/packages/tailwind/tailwind.config.js b/packages/tailwind/tailwind.config.jsindex 8f9764ba97..35ff52668c 100644--- a/packages/tailwind/tailwind.config.js+++ b/packages/tailwind/tailwind.config.js@@ -92,6 +92,10 @@ module.exports = {"accordion-down": "accordion-down 0.2s ease-out","accordion-up": "accordion-up 0.2s ease-out",},+ screens: {+ short: { raw: "(max-height: 400px)" },+ tall: { raw: "(min-height: 401px and max-height: 600px)" },+ },},},plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],