Vanessa 2025-08-01 20:14:12 +08:00
parent 857a795189
commit a088cf8706

View file

@ -1291,10 +1291,10 @@ export class Toolbar {
}
html = `<div class="b3-list-item">${window.siyuan.languages.clear}</div>` + html;
listElement.innerHTML = html;
if (listElement.firstElementChild.nextElementSibling) {
listElement.firstElementChild.nextElementSibling.classList.add("b3-list-item--focus");
if (listElement.childElementCount > 2) {
listElement.firstElementChild.nextElementSibling.nextElementSibling.classList.add("b3-list-item--focus");
} else {
listElement.firstElementChild.classList.add("b3-list-item--focus");
listElement.firstElementChild.nextElementSibling.classList.add("b3-list-item--focus");
}
event.stopPropagation();
});