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/empty note: fix alignment
Adorian Doran52691b9e885e
diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.cssindex 87cb7f1a2a..3f5f1e223e 100644--- a/apps/client/src/stylesheets/theme-next/pages.css+++ b/apps/client/src/stylesheets/theme-next/pages.css@@ -123,8 +123,12 @@*//* The container */-div.note-detail-empty {- max-width: 70%;++.note-split.empty-note {+ --max-content-width: 70%;+}++.note-split.empty-note div.note-detail {margin: 50px auto;}diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.tsindex 274dacfabf..f3c61859d8 100644--- a/apps/client/src/widgets/note_wrapper.ts+++ b/apps/client/src/widgets/note_wrapper.ts@@ -52,7 +52,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {const note = this.noteContext?.note;if (!note) {- this.$widget.addClass("bgfx");+ this.$widget.addClass("bgfx empty-note");return;}