From b741662fde9e9aa6cc861187b49ae167112a0e3e Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Mon, 10 Nov 2025 03:05:05 +0200 Subject: [PATCH] style/empty note: fix alignment --- apps/client/src/stylesheets/theme-next/pages.css | 8 ++++++-- apps/client/src/widgets/note_wrapper.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css index 87cb7f1a2..3f5f1e223 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 274dacfab..f3c61859d 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 { const note = this.noteContext?.note; if (!note) { - this.$widget.addClass("bgfx"); + this.$widget.addClass("bgfx empty-note"); return; }