Skip to content

Build your personal knowledge base with Trilium Notes

style/empty note: fix alignment

Adorian Doranb741662fde9e
diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css
index 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.ts
index 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;
}