From 93a1d6221868ef43824f36d236285531221af151 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 29 May 2025 14:48:17 +0300 Subject: [PATCH] fix(sql_console): background color --- .../src/widgets/type_widgets/abstract_code_type_widget.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts b/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts index 7343455ad..9da76b559 100644 --- a/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts +++ b/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts @@ -129,6 +129,11 @@ export default class AbstractCodeTypeWidget extends TypeWidget { } updateBackgroundColor(color?: string) { + if (this.note?.mime === "text/x-sqlite;schema=trilium") { + // Don't apply a background color for SQL console notes. + return; + } + const $editorEl = $(this.codeEditor.dom); this.$widget.closest(".scrolling-container").css("background-color", color ?? $editorEl.css("background-color")); }