mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(sql_console): background color
This commit is contained in:
		| @@ -129,6 +129,11 @@ export default class AbstractCodeTypeWidget extends TypeWidget { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     updateBackgroundColor(color?: string) { |     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); |         const $editorEl = $(this.codeEditor.dom); | ||||||
|         this.$widget.closest(".scrolling-container").css("background-color", color ?? $editorEl.css("background-color")); |         this.$widget.closest(".scrolling-container").css("background-color", color ?? $editorEl.css("background-color")); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user