Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 93a1d62

Browse files
committed
fix(sql_console): background color
1 parent 844fb3c commit 93a1d62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ export default class AbstractCodeTypeWidget extends TypeWidget {
129129
}
130130

131131
updateBackgroundColor(color?: string) {
132+
if (this.note?.mime === "text/x-sqlite;schema=trilium") {
133+
// Don't apply a background color for SQL console notes.
134+
return;
135+
}
136+
132137
const $editorEl = $(this.codeEditor.dom);
133138
this.$widget.closest(".scrolling-container").css("background-color", color ?? $editorEl.css("background-color"));
134139
}

0 commit comments

Comments
 (0)