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: fix styling for Location component

Rob Carrington8206e7eaefcf
diff --git a/apps/carbon/app/components/Location.tsx b/apps/carbon/app/components/Location.tsx
index 8e90cecfc9..ccb09f7085 100644
--- a/apps/carbon/app/components/Location.tsx
+++ b/apps/carbon/app/components/Location.tsx
@@ -21,20 +21,21 @@ type LocationProps = {
};
const Location = ({ location, actions }: LocationProps) => {
- const cityStateJoined = `${location.address.city ?? ""}, ${
+ const locationName = location.name;
+ const addressLine1 = location.address.addressLine1;
+ const cityStateZip = `${location.address.city ?? ""}, ${
location.address.state ?? ""
- }`;
- const addressZip = `${location.address.addressLine1 ?? ""} ${
- location.address.postalCode ?? ""
- }`;
+ } ${location.address.postalCode ?? ""}`;
return (
<div className="grid w-full gap-4 grid-cols-[auto_1fr_auto]">
<LuMapPin className="w-8 h-8" />
- <p className="font-bold line-clamp-1">{location.name}</p>
<VStack spacing={0}>
- <p className="font-bold line-clamp-1">{cityStateJoined}</p>
+ <p className="font-bold line-clamp-1">{locationName}</p>
<p className="text-sm text-muted-foreground line-clamp-1">
- {addressZip}
+ {addressLine1}
+ </p>
+ <p className="text-sm text-muted-foreground line-clamp-1">
+ {cityStateZip}
</p>
</VStack>
{actions.length > 0 && (