Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Fix: Optimize the text color of markdown-it code blocks

albert41e23b5a56ea
diff --git a/core/frontend/src/views/template/pages/AITemplate/components/MarkdownRender.vue b/core/frontend/src/views/template/pages/AITemplate/components/MarkdownRender.vue
index a68f3125..e5b294ec 100644
--- a/core/frontend/src/views/template/pages/AITemplate/components/MarkdownRender.vue
+++ b/core/frontend/src/views/template/pages/AITemplate/components/MarkdownRender.vue
@@ -145,7 +145,7 @@ function copyContent() {
}
:deep(pre) {
- background: var(--color-menu-1);
+ background: #333;
margin: 0;
padding: 10px;
font-size: 14px;
diff --git a/core/frontend/src/views/template/pages/AITemplate/highlight.theme.css b/core/frontend/src/views/template/pages/AITemplate/highlight.theme.css
index e876c82a..bea51a2b 100644
--- a/core/frontend/src/views/template/pages/AITemplate/highlight.theme.css
+++ b/core/frontend/src/views/template/pages/AITemplate/highlight.theme.css
@@ -9,7 +9,7 @@ pre code.hljs {
.code-area {
pre {
- color: var(--color-bg-2) !important;
+ color: #fff !important;
}
}
/*