Browse Source

:art: fix https://github.com/siyuan-note/siyuan/issues/9385

Vanessa 1 year ago
parent
commit
f62be4719e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/config/util/snippets.ts

+ 1 - 1
app/src/config/util/snippets.ts

@@ -158,6 +158,6 @@ const genSnippet = (options: ISnippet) => {
         </span>
     </div>
     <div class="fn__hr"></div>
-    <textarea class="fn__block b3-text-field" placeholder="${window.siyuan.languages.codeSnippet}" style="resize: vertical" spellcheck="false"></textarea>
+    <textarea class="fn__block b3-text-field" placeholder="${window.siyuan.languages.codeSnippet}" style="resize: vertical;font-family:var(--b3-font-family-code)" spellcheck="false"></textarea>
 </div><div class="fn__hr--b"></div>`;
 };