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: hiden work center and job on short screens

Brad Barbin7145f985e5fe
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsx
index fbd7372181..79fe329521 100644
--- a/apps/mes/app/components/JobOperation.tsx
+++ b/apps/mes/app/components/JobOperation.tsx
@@ -605,31 +605,33 @@ export const JobOperation = ({
{activeTab !== "instructions" && (
<Controls>
<div className="flex flex-col items-center gap-2 p-4">
- <VStack spacing={2}>
- <VStack spacing={1}>
- <span className="text-muted-foreground text-xs">
- Work Center
- </span>
- <Suspense fallback={<Heading size="h4">...</Heading>}>
- <Await resolve={workCenter}>
- {(resolvedWorkCenter) =>
- resolvedWorkCenter.data && (
- <Heading size="h4" className="line-clamp-1">
- {resolvedWorkCenter.data?.name}
- </Heading>
- )
- }
- </Await>
- </Suspense>
- </VStack>
+ <div className="w-full hidden tall:block">
+ <VStack spacing={2}>
+ <VStack spacing={1}>
+ <span className="text-muted-foreground text-xs">
+ Work Center
+ </span>
+ <Suspense fallback={<Heading size="h4">...</Heading>}>
+ <Await resolve={workCenter}>
+ {(resolvedWorkCenter) =>
+ resolvedWorkCenter.data && (
+ <Heading size="h4" className="line-clamp-1">
+ {resolvedWorkCenter.data?.name}
+ </Heading>
+ )
+ }
+ </Await>
+ </Suspense>
+ </VStack>
- <VStack spacing={1}>
- <span className="text-muted-foreground text-xs">Item</span>
- <Heading size="h4" className="line-clamp-1">
- {operation.itemReadableId}
- </Heading>
+ <VStack spacing={1}>
+ <span className="text-muted-foreground text-xs">Item</span>
+ <Heading size="h4" className="line-clamp-1">
+ {operation.itemReadableId}
+ </Heading>
+ </VStack>
</VStack>
- </VStack>
+ </div>
<div className="md:hidden flex flex-col items-center gap-2 w-full">
<VStack spacing={1}>
diff --git a/packages/tailwind/tailwind.config.js b/packages/tailwind/tailwind.config.js
index 81da31ecef..b7cd621eaa 100644
--- a/packages/tailwind/tailwind.config.js
+++ b/packages/tailwind/tailwind.config.js
@@ -93,8 +93,7 @@ export default {
"accordion-up": "accordion-up 0.2s ease-out",
},
screens: {
- short: { raw: "(max-height: 400px)" },
- tall: { raw: "(min-height: 401px and max-height: 600px)" },
+ tall: { raw: "(min-height: 700px)" },
},
},
},