mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 12:07:10 +02:00
update comment
This commit is contained in:
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user