Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
use bootstrap default monospace fonts for code notes, fixes #1489
zadam95ccfd2521c0
diff --git a/src/public/app/widgets/type_widgets/editable_code.js b/src/public/app/widgets/type_widgets/editable_code.jsindex 37d19333be..2ba9eaa1a2 100644--- a/src/public/app/widgets/type_widgets/editable_code.js+++ b/src/public/app/widgets/type_widgets/editable_code.js@@ -13,7 +13,6 @@ const TPL = `height: 100%;display: flex;flex-direction: column;- font-size: larger; /* monospace fonts are smaller for some reason so this compensates that */}.note-detail-code-editor {diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.cssindex 8126befc07..9a643d97b4 100644--- a/src/public/stylesheets/style.css+++ b/src/public/stylesheets/style.css@@ -265,6 +265,10 @@ div.ui-tooltip {background: inherit;}+.CodeMirror * {+ font-family: var(--font-family-monospace) !important;+}+.CodeMirror-gutters {background-color: inherit !important;border-right: none;