mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
This commit is contained in:
parent
30b0dd08fa
commit
acd2eb1677
2 changed files with 6 additions and 6 deletions
|
|
@ -1147,10 +1147,10 @@ export class Toolbar {
|
|||
const id = nodeElement.getAttribute("data-node-id");
|
||||
let oldHtml = nodeElement.outerHTML;
|
||||
|
||||
let html = `<div class="b3-list-item b3-list-item--focus">${window.siyuan.languages.clear}</div>`;
|
||||
let html = `<div class="b3-list-item">${window.siyuan.languages.clear}</div>`;
|
||||
const hljsLanguages = Constants.ALIAS_CODE_LANGUAGES.concat(window.hljs?.listLanguages() ?? []).sort();
|
||||
hljsLanguages.forEach((item) => {
|
||||
html += `<div class="b3-list-item">${item}</div>`;
|
||||
hljsLanguages.forEach((item, index) => {
|
||||
html += `<div class="b3-list-item${index === 0 ? " b3-list-item--focus" : ""}">${item}</div>`;
|
||||
});
|
||||
|
||||
this.subElement.style.width = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue