mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(sql_console): background color
This commit is contained in:
parent
844fb3cfb7
commit
93a1d62218
@ -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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user