Use CSS variable monospace font for slash commands in send textarea

6e58f08f3c0f6de5bc173ae3925f6eb71a012510

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/slash-commands.js+1 -1
@@ -4940,7 +4940,7 @@ const sendTextarea = document.querySelector('#send_textarea');
4940setSlashCommandAutoComplete(sendTextarea);4940setSlashCommandAutoComplete(sendTextarea);
4941sendTextarea.addEventListener('input', () => {4941sendTextarea.addEventListener('input', () => {
4942 if (sendTextarea.value[0] == '/') {4942 if (sendTextarea.value[0] == '/') {
4943 sendTextarea.style.fontFamily = 'monospace';4943 sendTextarea.style.fontFamily = 'var(--monoFontFamily, monospace)';
4944 } else {4944 } else {
4945 sendTextarea.style.fontFamily = null;4945 sendTextarea.style.fontFamily = null;
4946 }4946 }