mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-29 05:56:21 +01:00
update comment
This commit is contained in:
parent
8fcfbb752a
commit
439bf5a21a
@ -52,7 +52,7 @@ function isMonospaceEnabled() {
|
||||
return localStorage?.getItem('markdown-editor-monospace') === 'true';
|
||||
}
|
||||
|
||||
/** Apply font variant to the provided or all textareas on the page */
|
||||
/** Apply font to the provided or all textareas on the page */
|
||||
function applyFont(monospaceEnabled: boolean, textarea?: HTMLTextAreaElement) {
|
||||
for (const el of textarea ? [textarea] : document.querySelectorAll('.markdown-text-editor')) {
|
||||
el.classList.toggle('tw-font-mono', monospaceEnabled);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user