mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 21:07:05 -06:00
fix(type_widgets/code): background color leaking in SQLite
This commit is contained in:
parent
a82d15e83d
commit
35f413505c
@ -4,6 +4,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-split.type-code > .scrolling-container {
|
.note-split.type-code:not(.mime-text-x-sqlite) > .scrolling-container {
|
||||||
background-color: var(--code-background-color);
|
background-color: var(--code-background-color);
|
||||||
}
|
}
|
||||||
@ -153,7 +153,6 @@ export function CodeEditor({ parentComponent, ntxId, containerRef: externalConta
|
|||||||
const theme = getThemeById(codeNoteTheme.substring(DEFAULT_PREFIX.length));
|
const theme = getThemeById(codeNoteTheme.substring(DEFAULT_PREFIX.length));
|
||||||
if (theme) {
|
if (theme) {
|
||||||
codeEditorRef.current.setTheme(theme).then(() => {
|
codeEditorRef.current.setTheme(theme).then(() => {
|
||||||
if (mime === "text/x-sqlite;schema=trilium") return;
|
|
||||||
const editor = containerRef.current?.querySelector(".cm-editor");
|
const editor = containerRef.current?.querySelector(".cm-editor");
|
||||||
if (!editor) return;
|
if (!editor) return;
|
||||||
const style = window.getComputedStyle(editor);
|
const style = window.getComputedStyle(editor);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user