diff --git a/M01_MasterData/SheetLogic/M01_SL_Entry_Paper.ts b/M01_MasterData/SheetLogic/M01_SL_Entry_Paper.ts index 43a42169b..942a536f3 100644 --- a/M01_MasterData/SheetLogic/M01_SL_Entry_Paper.ts +++ b/M01_MasterData/SheetLogic/M01_SL_Entry_Paper.ts @@ -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", {