fix(canvas): show emoji + title in toolbar panel header
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0645628fb6
commit
eac0817d4f
|
|
@ -5094,8 +5094,10 @@
|
||||||
const dropdown = group.querySelector(".toolbar-dropdown");
|
const dropdown = group.querySelector(".toolbar-dropdown");
|
||||||
if (!dropdown) return;
|
if (!dropdown) return;
|
||||||
|
|
||||||
// Set header text from the toggle button's title attribute
|
// Set header: emoji + title
|
||||||
toolbarPanelHeader.textContent = toggle.getAttribute("title") || toggle.textContent.trim();
|
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
|
// Clone dropdown buttons into the panel body
|
||||||
toolbarPanelBody.innerHTML = "";
|
toolbarPanelBody.innerHTML = "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue