fix(sql_console): background color

This commit is contained in:
Elian Doran 2025-05-29 14:48:17 +03:00
parent 844fb3cfb7
commit 93a1d62218
No known key found for this signature in database

View File

@ -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"));
}