mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
Fix collapse arrow displaying as HTML entity code in area view
Use innerHTML instead of textContent so the HTML entity (▶/▼) is rendered as a triangle character instead of literal text. https://claude.ai/code/session_016Boc373F7gpM9ED6L5LE9U
This commit is contained in:
parent
f7e4a17f1c
commit
033b98b1d1
|
|
@ -2540,7 +2540,7 @@ async function renderMapDetail(dirName) {
|
|||
const body = header.nextElementSibling;
|
||||
if (body) body.classList.toggle('collapsed');
|
||||
const arrow = header.querySelector('.toggle-arrow');
|
||||
if (arrow) arrow.textContent = body.classList.contains('collapsed') ? '▶' : '▼';
|
||||
if (arrow) arrow.innerHTML = body.classList.contains('collapsed') ? '▶' : '▼';
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user