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: don't wrap words in used in menu

Brad Barbin1f8d02242ad9
diff --git a/apps/erp/app/modules/items/ui/Item/UsedIn.tsx b/apps/erp/app/modules/items/ui/Item/UsedIn.tsx
index 3bf48a2ab1..e31c79cd82 100644
--- a/apps/erp/app/modules/items/ui/Item/UsedIn.tsx
+++ b/apps/erp/app/modules/items/ui/Item/UsedIn.tsx
@@ -145,7 +145,7 @@ export function UsedInItem({
<Hyperlink
key={index}
to={getUseInLink(child, node.key, itemReadableId)}
- className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-muted/90 w-full font-medium"
+ className="flex h-8 cursor-pointer items-center overflow-hidden rounded-sm px-1 gap-4 text-sm hover:bg-muted/90 w-full font-medium whitespace-nowrap"
>
<LevelLine isSelected={false} className="mr-2" />
{child.methodType === "Shipment" ? (
@@ -156,7 +156,7 @@ export function UsedInItem({
className="mr-2"
/>
)}
- {child.documentReadableId}
+ <span className="truncate">{child.documentReadableId}</span>
</Hyperlink>
))
)}