This commit is contained in:
2026-07-24 17:52:01 +09:00
parent 5c8c0462f9
commit 505f28a30b
10 changed files with 109 additions and 39 deletions
@@ -11,6 +11,7 @@
* ========================================================================== */
import "./B07_wf4_DesignDetail_UI_Style.css";
import { attachCollapsible } from "@ui/ui_template_collapsible";
import { ui_locales, currentLanguageIndex } from "@ui/ui_template_locale";
import {
createButton,
@@ -136,9 +137,10 @@ function buildDrawingSidePanel(
for (const [label, kind, items] of groups) {
if (!items.length) continue;
const section = document.createElement("section");
section.className = "b07-drawing-group";
section.className = "b07-drawing-group ui-collapsible";
section.dataset.kind = kind;
const sectionTitle = document.createElement("h3");
sectionTitle.className = "ui-collapsible__title";
sectionTitle.textContent = `${label} ${items.length}`;
section.append(sectionTitle);
for (const drawing of items) {
@@ -159,6 +161,7 @@ function buildDrawingSidePanel(
}
panel.append(section);
}
attachCollapsible(panel);
return panel;
}