diff --git a/src/muya/themes/default.css b/src/muya/themes/default.css index d7e16b64..450b5835 100644 --- a/src/muya/themes/default.css +++ b/src/muya/themes/default.css @@ -416,8 +416,9 @@ kbd { } :not(pre) > code[class*="language-"], - pre, - pre[class*="language-"] { + pre:not(.CodeMirror-line), + pre[class*="language-"], + pre.ag-paragraph { overflow: visible; font-size: 90%; line-height: 1.6; diff --git a/src/renderer/assets/themes/dark.theme.css b/src/renderer/assets/themes/dark.theme.css index d1063908..07ef76e4 100644 --- a/src/renderer/assets/themes/dark.theme.css +++ b/src/renderer/assets/themes/dark.theme.css @@ -57,7 +57,7 @@ } :not(pre) > code[class*="language-"], -pre, +pre:not(.CodeMirror-line), pre[class*="language-"], pre.ag-paragraph { background: var(--codeBlockBgColor) !important; diff --git a/src/renderer/assets/themes/material-dark.theme.css b/src/renderer/assets/themes/material-dark.theme.css index 345ffc52..7ff4e8ad 100644 --- a/src/renderer/assets/themes/material-dark.theme.css +++ b/src/renderer/assets/themes/material-dark.theme.css @@ -49,7 +49,7 @@ /* ------------------------------------ */ :not(pre) > code[class*="language-"], -pre, +pre:not(.CodeMirror-line), pre[class*="language-"], pre.ag-paragraph { background: var(--codeBlockBgColor) !important; diff --git a/src/renderer/assets/themes/one-dark.theme.css b/src/renderer/assets/themes/one-dark.theme.css index 4684f712..d772d24c 100644 --- a/src/renderer/assets/themes/one-dark.theme.css +++ b/src/renderer/assets/themes/one-dark.theme.css @@ -133,7 +133,7 @@ } :not(pre) > code[class*="language-"], -pre, +pre:not(.CodeMirror-line), pre[class*="language-"], pre.ag-paragraph { background: var(--codeBlockBgColor) !important; diff --git a/src/renderer/assets/themes/prismjs/one-dark.theme.css b/src/renderer/assets/themes/prismjs/one-dark.theme.css index 0374db18..b5c050cd 100644 --- a/src/renderer/assets/themes/prismjs/one-dark.theme.css +++ b/src/renderer/assets/themes/prismjs/one-dark.theme.css @@ -56,7 +56,7 @@ pre.ag-paragraph { /* Inline Code */ :not(pre) > code[class*="language-"], pre.ag-paragraph { - background: #282c34; + background: #3a3f4b; } /* Inline Code */