diff --git a/resources/js/pages/admin/manage/cutting/create.tsx b/resources/js/pages/admin/manage/cutting/create.tsx index 995a4f3..86c69ec 100644 --- a/resources/js/pages/admin/manage/cutting/create.tsx +++ b/resources/js/pages/admin/manage/cutting/create.tsx @@ -337,7 +337,7 @@ export default function CuttingCreate({ rawMaterials }: Props) { Pilih Bahan Baku - + Nama Bahan Baku * @@ -386,7 +386,7 @@ export default function CuttingCreate({ rawMaterials }: Props) { const addedCount = materials.filter((m) => m.raw_material_price_id === price.id).length; return ( - + {price.photo_url ? ( @@ -401,7 +401,7 @@ export default function CuttingCreate({ rawMaterials }: Props) { - + addVariant(rm, price.id)}> Tambah @@ -432,7 +432,7 @@ export default function CuttingCreate({ rawMaterials }: Props) { const addedCount = materials.filter((m) => m.raw_material_price_id === price.id).length; return ( - + {price.photo_url ? ( @@ -447,7 +447,7 @@ export default function CuttingCreate({ rawMaterials }: Props) { - + addVariant(selectedMaterial, price.id)}> Tambah diff --git a/resources/js/pages/admin/manage/cutting/edit.tsx b/resources/js/pages/admin/manage/cutting/edit.tsx index 87a941d..ba62441 100644 --- a/resources/js/pages/admin/manage/cutting/edit.tsx +++ b/resources/js/pages/admin/manage/cutting/edit.tsx @@ -313,7 +313,7 @@ export default function CuttingEdit({ cutting, rawMaterials }: Props) { Pilih Bahan Baku - + Nama Bahan Baku * @@ -362,7 +362,7 @@ export default function CuttingEdit({ cutting, rawMaterials }: Props) { const addedCount = materials.filter((m) => m.raw_material_price_id === price.id).length; return ( - + {price.photo_url ? ( @@ -377,7 +377,7 @@ export default function CuttingEdit({ cutting, rawMaterials }: Props) { - + addVariant(rm, price.id)}> Tambah @@ -408,7 +408,7 @@ export default function CuttingEdit({ cutting, rawMaterials }: Props) { const addedCount = materials.filter((m) => m.raw_material_price_id === price.id).length; return ( - + {price.photo_url ? ( @@ -423,7 +423,7 @@ export default function CuttingEdit({ cutting, rawMaterials }: Props) { - + addVariant(selectedMaterial, price.id)}> Tambah diff --git a/resources/js/pages/admin/manage/purchase/create.tsx b/resources/js/pages/admin/manage/purchase/create.tsx index f9423a9..7baf5e0 100644 --- a/resources/js/pages/admin/manage/purchase/create.tsx +++ b/resources/js/pages/admin/manage/purchase/create.tsx @@ -866,8 +866,8 @@ export default function PurchaseCreate({ suppliers, rawMaterials }: Props) { ] ?? 0) > 0 - ? 'flex items-center justify-between gap-3 rounded-lg border border-primary p-3' - : 'flex items-center justify-between gap-3 rounded-lg border p-3' + ? 'flex flex-wrap items-center justify-between gap-2 rounded-lg border border-primary p-3' + : 'flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3' } > @@ -909,7 +909,7 @@ export default function PurchaseCreate({ suppliers, rawMaterials }: Props) { - + - 0 - ? 'flex items-center justify-between gap-3 rounded-lg border border-primary p-3' - : 'flex items-center justify-between gap-3 rounded-lg border p-3' + 0 + ? 'flex flex-wrap items-center justify-between gap-2 rounded-lg border border-primary p-3' + : 'flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3' } > @@ -350,7 +350,7 @@ export default function PurchaseEdit({ - + 0 - ? 'flex items-center justify-between gap-3 rounded-lg border border-primary p-3' - : 'flex items-center justify-between gap-3 rounded-lg border p-3' + ? 'flex flex-wrap items-center justify-between gap-2 rounded-lg border border-primary p-3' + : 'flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3' } > @@ -351,7 +351,7 @@ return 0; - + 0 - ? 'flex items-center justify-between gap-3 rounded-lg border border-primary p-3' - : 'flex items-center justify-between gap-3 rounded-lg border p-3' + ? 'flex flex-wrap items-center justify-between gap-2 rounded-lg border border-primary p-3' + : 'flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3' } > @@ -279,7 +279,7 @@ return 0; - + 0 - ? 'flex items-center justify-between gap-3 rounded-lg border border-primary p-3' - : 'flex items-center justify-between gap-3 rounded-lg border p-3' - } - > + 0 + ? 'flex flex-wrap items-center justify-between gap-2 rounded-lg border border-primary p-3' + : 'flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3' + } + > {variant.photo_url ? ( - + 0 - ? 'flex items-center justify-between gap-3 rounded-lg border border-primary p-3' - : 'flex items-center justify-between gap-3 rounded-lg border p-3' - } - > + 0 + ? 'flex flex-wrap items-center justify-between gap-2 rounded-lg border border-primary p-3' + : 'flex flex-wrap items-center justify-between gap-2 rounded-lg border p-3' + } + > {variant.photo_url ? ( - +