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");
|
||||
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 = "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue