From f570729f7c6a15910bf17e20edf8ef856ca09e39 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 12 Oct 2026 21:45:36 +0900 Subject: [PATCH] =?UTF-8?q?fix(b06):=20=EC=84=A0=ED=83=9D=20=EC=BB=A8?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=84=88=20[=EC=82=AD=EC=A0=9C]=20=EB=8B=A8?= =?UTF-8?q?=EC=B6=94=20=E2=80=94=20B06=20=EC=A1=B0=EC=A0=95=20=EA=B0=95?= =?UTF-8?q?=EC=A1=B0=20=EC=9D=B4=EB=A6=84=ED=91=9C=EB=8A=94=20=EA=B8=80=20?= =?UTF-8?q?=EC=B9=B8=EB=A7=8C=20=EA=B3=A0=EC=B9=A8=20=C2=B7=20=EC=9B=90?= =?UTF-8?q?=EB=9E=98=20=EA=B8=80=EC=97=90=20=E3=80=8C=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=E3=80=8D=20=EC=95=88=20=EC=84=9E=EC=9E=84=20(294-1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - setGroupLabel 이 legend 를 통째로 다시 써 [삭제] 단추가 지워지고 baseLabel 에 「도수로/돌붙임 삭제」가 섞이던 것 - 첫 글 마디만 고침 — 도수로/돌붙임 · 날개벽 등 [삭제] 가진 상자 모두 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VmC34fsxxbweEG3RUjs3Mn --- B06_Section/B06_Section_UI_Adjust_Dock.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/B06_Section/B06_Section_UI_Adjust_Dock.ts b/B06_Section/B06_Section_UI_Adjust_Dock.ts index e194f2270..394bfae5d 100644 --- a/B06_Section/B06_Section_UI_Adjust_Dock.ts +++ b/B06_Section/B06_Section_UI_Adjust_Dock.ts @@ -101,13 +101,17 @@ function slotOf(side: "inlet" | "outlet"): HTMLElement { * 나오지 않는다(2026-08-29 사용자 보고: 단 수·옵션이 사라짐). */ const movedRows: Array<{ row: HTMLElement; anchor: Comment }> = []; -/** 그룹 이름표 — 원래 문구를 한 번만 적어 두고, 선택에 따라 괄호 표기를 붙였다 뗀다. */ +/** 그룹 이름표 — 원래 문구를 한 번만 적어 두고, 선택에 따라 괄호 표기를 붙였다 뗀다. + * 글 칸(첫 글 마디)만 고침 — 이름표에 붙은 [삭제] 단추는 그대로(294-1). */ function setGroupLabel(group: HTMLElement, suffix: string): void { const legend = group.querySelector("legend"); if (!legend || legend.dataset.fixedLabel) return; - legend.dataset.baseLabel ??= legend.textContent ?? ""; + const text = + [...legend.childNodes].find((node) => node.nodeType === Node.TEXT_NODE) ?? + legend.insertBefore(document.createTextNode(""), legend.firstChild); + legend.dataset.baseLabel ??= text.textContent ?? ""; const base = legend.dataset.baseLabel; - legend.textContent = suffix ? `${base} (${suffix})` : base; + text.textContent = suffix ? `${base} (${suffix})` : base; } /** 옮겨 온 행을 **원래 자리로 되돌리고** 슬롯을 비운다. 그룹 강조도 끈다. */