aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/comp/ComboMarkdownEditor.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-28 09:31:07 +0100
committerGitHub <noreply@github.com>2024-03-28 08:31:07 +0000
commit226a82a9396dc94f362ba27bd1c9318630df74b4 (patch)
treecd4b4ff394c6e8d0e10ed700e0c3622c23c9493c /web_src/js/features/comp/ComboMarkdownEditor.js
parent7443a10fc3d722d3326a0cb7b15b208f907c72d7 (diff)
downloadgitea-226a82a9396dc94f362ba27bd1c9318630df74b4.tar.gz
gitea-226a82a9396dc94f362ba27bd1c9318630df74b4.zip
Migrate font-family to tailwind (#30118)
Enable us to use tailwind's [`font-family`](https://tailwindcss.com/docs/font-family) classes as well as remove `gt-mono` in favor of `tw-font-mono`. I also merged the "compensation" to one selector, previously this was two different values 0.9em and 0.95em. I did not declare a `serif` font because I don't think there will ever be a use case for those. Command ran: ```sh perl -p -i -e 's#gt-mono#tw-font-mono#g' web_src/js/**/* templates/**/*
Diffstat (limited to 'web_src/js/features/comp/ComboMarkdownEditor.js')
-rw-r--r--web_src/js/features/comp/ComboMarkdownEditor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/comp/ComboMarkdownEditor.js b/web_src/js/features/comp/ComboMarkdownEditor.js
index 1e728ca201..d3fab375a9 100644
--- a/web_src/js/features/comp/ComboMarkdownEditor.js
+++ b/web_src/js/features/comp/ComboMarkdownEditor.js
@@ -105,7 +105,7 @@ class ComboMarkdownEditor {
e.preventDefault();
const enabled = localStorage?.getItem('markdown-editor-monospace') !== 'true';
localStorage.setItem('markdown-editor-monospace', String(enabled));
- this.textarea.classList.toggle('gt-mono', enabled);
+ this.textarea.classList.toggle('tw-font-mono', enabled);
const text = monospaceButton.getAttribute(enabled ? 'data-disable-text' : 'data-enable-text');
monospaceButton.setAttribute('data-tooltip-content', text);
monospaceButton.setAttribute('aria-checked', String(enabled));