fix(type_widgets/code): background color leaking in SQLite

This commit is contained in:
Elian Doran 2025-11-09 14:40:14 +02:00
parent a82d15e83d
commit 35f413505c
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -4,6 +4,6 @@
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);
}

View File

@ -153,7 +153,6 @@ export function CodeEditor({ parentComponent, ntxId, containerRef: externalConta
const theme = getThemeById(codeNoteTheme.substring(DEFAULT_PREFIX.length));
if (theme) {
codeEditorRef.current.setTheme(theme).then(() => {
if (mime === "text/x-sqlite;schema=trilium") return;
const editor = containerRef.current?.querySelector(".cm-editor");
if (!editor) return;
const style = window.getComputedStyle(editor);