fix(canvas): show emoji + title in toolbar panel header

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-09 20:29:01 -07:00
parent 0645628fb6
commit eac0817d4f
1 changed files with 4 additions and 2 deletions

View File

@ -5094,8 +5094,10 @@
const dropdown = group.querySelector(".toolbar-dropdown");
if (!dropdown) return;
// Set header text from the toggle button's title attribute
toolbarPanelHeader.textContent = toggle.getAttribute("title") || toggle.textContent.trim();
// Set header: emoji + title
const icon = toggle.querySelector(".tg-icon");
const title = toggle.getAttribute("title") || "";
toolbarPanelHeader.textContent = (icon ? icon.textContent.trim() + " " : "") + title;
// Clone dropdown buttons into the panel body
toolbarPanelBody.innerHTML = "";