diff --git a/B08_Quantity/B08_Quantity_UI_Page.ts b/B08_Quantity/B08_Quantity_UI_Page.ts index 6813b290..1d4971d3 100644 --- a/B08_Quantity/B08_Quantity_UI_Page.ts +++ b/B08_Quantity/B08_Quantity_UI_Page.ts @@ -781,12 +781,13 @@ function buildQuantityBody( }; // 등급색 토글 — ⚠ **사전이 왔을 때만** 만든다(개발환경). 배포 빌드에서는 단추 자체가 없다. - if ( + // ⚠ 만들기만 하고 **붙이는 것은 탭 단추를 다 세운 뒤**이다 — 여기서 바로 붙이면 + // 탭 줄 **맨 앞**에 서서 「토적표」 앞에 탭 하나가 더 있는 것처럼 보인다(2026-09-12 실측: x=8). + const provenanceToggle = (table as unknown as { provenance?: unknown } | null)?.provenance || (material as unknown as { provenance?: unknown } | null)?.provenance - ) { - tabs.append(createProvenanceToggle(body)); - } + ? createProvenanceToggle(body) + : null; if (failed) { body.append(tabs, message(L("B08_Quantity_Grid_Failed"))); @@ -863,6 +864,8 @@ function buildQuantityBody( buttons.push(button); tabs.append(button); }); + // 토글은 탭 줄 **끝**에 둔다 — 표를 고르는 단추가 아니라 보기 방식을 바꾸는 단추라 섞이면 안 된다. + if (provenanceToggle) tabs.append(provenanceToggle); body.append(tabs, pane); show(0);