Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style: use background effects for empty note, refactor
Adorian Doran5df512a69cc2
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.cssindex cf02b65884..dd3a58ca91 100644--- a/apps/client/src/stylesheets/theme-next/shell.css+++ b/apps/client/src/stylesheets/theme-next/shell.css@@ -67,8 +67,8 @@ body.background-effects.platform-win32.layout-vertical #vertical-main-containerbackground-color: var(--root-background);}-/* Settings page */-body.background-effects.platform-win32 #center-pane .note-split.options {+/* Note split with background effects */+body.background-effects.platform-win32 #center-pane .note-split.bgfx {--note-split-background-color: var(--center-pane-background-color-bgfx);}diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.tsindex 559f9ece95..9d1be7794f 100644--- a/apps/client/src/widgets/note_wrapper.ts+++ b/apps/client/src/widgets/note_wrapper.ts@@ -52,6 +52,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {const note = this.noteContext?.note;if (!note) {+ this.$widget.addClass("bgfx");return;}@@ -61,7 +62,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {this.$widget.addClass(utils.getNoteTypeClass(note.type));this.$widget.addClass(utils.getMimeTypeClass(note.mime));- this.$widget.toggleClass("options", note.isOptions());+ this.$widget.toggleClass("bgfx", note.isOptions());this.$widget.toggleClass("protected", note.isProtected);const noteLanguage = note?.getLabelValue("language");