Skip to content

Commit 35f4135

Browse files
committed
fix(type_widgets/code): background color leaking in SQLite
1 parent a82d15e commit 35f4135

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/client/src/widgets/containers/scrolling_container.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
position: relative;
55
}
66

7-
.note-split.type-code > .scrolling-container {
7+
.note-split.type-code:not(.mime-text-x-sqlite) > .scrolling-container {
88
background-color: var(--code-background-color);
99
}

apps/client/src/widgets/type_widgets/code/Code.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ export function CodeEditor({ parentComponent, ntxId, containerRef: externalConta
153153
const theme = getThemeById(codeNoteTheme.substring(DEFAULT_PREFIX.length));
154154
if (theme) {
155155
codeEditorRef.current.setTheme(theme).then(() => {
156-
if (mime === "text/x-sqlite;schema=trilium") return;
157156
const editor = containerRef.current?.querySelector(".cm-editor");
158157
if (!editor) return;
159158
const style = window.getComputedStyle(editor);

0 commit comments

Comments
 (0)