Fix: auto-expand all wiki topics initially
This commit is contained in:
+4
-1
@@ -334,10 +334,13 @@ async function loadWiki() {
|
||||
topicDiv.innerHTML = `
|
||||
<h4 class="hide-de topic-title">${topicName}</h4>
|
||||
<h4 class="hide-en topic-title">${topicName}</h4>
|
||||
<div class="wiki-subtopics hidden"></div>
|
||||
<div class="wiki-subtopics"></div>
|
||||
`;
|
||||
wikiContainer.appendChild(topicDiv);
|
||||
|
||||
// Auto-expand all topics initially
|
||||
subtopicsDiv.classList.remove('hidden');
|
||||
|
||||
const subtopicsDiv = topicDiv.querySelector('.wiki-subtopics');
|
||||
const topicTitle = topicDiv.querySelector('.topic-title');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user