fix(m01-sl): 상자를 안 고르면 시트 판을 숨기기만 — 갈아끼우면 표 상자 편집기가 다시 안 뜨던 흠

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt
This commit is contained in:
2026-10-01 13:46:16 +09:00
co-authored by Claude Opus 5.5
parent 45192daf30
commit 2d64a76fc3
@@ -204,7 +204,9 @@ export function showPaper(
const unsaved = createTag(tp("Unsaved"), "warning");
const note = el("p", { className: "m01-sl__note", attrs: { role: "status" } });
const diagramHost = el("div", { className: "m01-sl__part-body" });
// 시트 판은 Panel 이 제 상태로 쥠 — 안을 갈아끼우지 않고 숨기기만(갈아끼우면 Panel 이 편집기가 있다고 여김)
const panelHost = el("div");
const pickHint = muted(tp("PickBox"));
const toolsHost = el("div");
const resultHost = el("div", { className: "m01-sl__part-body" });
@@ -283,10 +285,14 @@ export function showPaper(
const drawPanel = (): void => {
const node = sl.nodes.find((n) => n.id === selected);
if (!node) {
panelHost.replaceChildren(muted(tp("PickBox")));
panelHost.hidden = true;
pickHint.hidden = false;
toolsHost.replaceChildren();
return;
}
panelHost.hidden = false;
pickHint.hidden = true;
toolsHost.className = ""; // 표 손잡이가 제 꾸밈 이름을 붙임 — 다른 종류로 바뀌면 지움
M.panel.renderPanel(panelHost, sl, node.id, {
change: (next) => edit(next),
pill: (nodeId, cell, dir, pillName) => edit(M.model.setPill(sl, nodeId, cell, dir, pillName)),
@@ -416,7 +422,10 @@ export function showPaper(
className: "m01-sl__part m01-sl__panel",
children: [
el("h4", { text: tp("Panel") }),
el("div", { className: "m01-sl__part-body", children: [toolsHost, panelHost] }),
el("div", {
className: "m01-sl__part-body",
children: [pickHint, toolsHost, panelHost],
}),
],
}),
el("section", {