fix(720-2): 단가산출 · 일위대가 층 줄 「+」 = 구조물 조합과 같은 자리(줄 오른쪽 끝 m02-tree__tools)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 21:47:26 +09:00
co-authored by Claude Opus 5.5
parent ace439ad04
commit e9106ae4d6
2 changed files with 4 additions and 2 deletions
@@ -143,6 +143,8 @@ export function buildLibrarySection(opt: LibraryOptions): LibraryHandle {
add.classList.add("m02-tree__add");
add.title = L("M02_TreeAddTop");
add.setAttribute("aria-label", L("M02_TreeAddTop"));
// 구조물 조합 줄과 같은 자리(줄 오른쪽 끝 · `m02-tree__tools`)
const addTools = el("span", { className: "ui-toolbar m02-tree__tools", children: [add] });
const leaves = new Map<string, HTMLElement>();
const toggled = new Map<string, boolean>(); // 손으로 펴고 접은 폴더 — 다시 그려도 그대로
const targets = new Map<string, Target>();
@@ -470,7 +472,7 @@ export function buildLibrarySection(opt: LibraryOptions): LibraryHandle {
const mine = ++seq;
const at = opt.scope();
add.hidden = !at.canWrite;
barHost.replaceChildren(opt.bar(add));
barHost.replaceChildren(opt.bar(addTools));
if (!keep) treeHost.replaceChildren(createEmpty({ text: tc("Loading"), small: true }));
const [got, tree] = await Promise.all([
// 못 받으면 빈 나무(목록표에서 까닭) · 폴더를 못 받으면 문서는 모두 뿌리