fix: 품목+설비명 합쳐서 한 줄 슬라이드 (둘 다 길 때 대응)

This commit is contained in:
SeongHyun Kim
2026-04-08 11:17:53 +09:00
parent 659bd9caad
commit cdea6297e7

View File

@@ -1436,17 +1436,11 @@ export function WorkOrderList() {
</div>
{/* Sub-info: item name + equipment */}
<div className="flex items-center gap-3 text-sm text-gray-500 mb-3 min-w-0">
<AutoScrollText className="flex-1 min-w-0">
📦 {wi?.item_name || "품목"}{(wi?.item_code || wi?.item_number) ? `(${wi?.item_code || wi?.item_number})` : ""}
</AutoScrollText>
{!isRework && (
<span className="shrink-0"> {eqName}</span>
)}
{isRework && (
<span className="shrink-0"> {proc.process_name || proc.process_code}</span>
)}
</div>
<AutoScrollText className="text-sm text-gray-500 mb-3">
📦 {wi?.item_name || "품목"}{(wi?.item_code || wi?.item_number) ? `(${wi?.item_code || wi?.item_number})` : ""}
{" · "}
{!isRework ? `⚙️ ${eqName}` : `⚙️ ${proc.process_name || proc.process_code}`}
</AutoScrollText>
{/* Process steps (compressed) — both normal and rework cards */}
{siblingProcesses.length > 1 && (