Skip to content

Commit 52691b9

Browse files
committed
style/empty note: fix alignment
1 parent daba806 commit 52691b9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

apps/client/src/stylesheets/theme-next/pages.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,12 @@
123123
*/
124124

125125
/* The container */
126-
div.note-detail-empty {
127-
max-width: 70%;
126+
127+
.note-split.empty-note {
128+
--max-content-width: 70%;
129+
}
130+
131+
.note-split.empty-note div.note-detail {
128132
margin: 50px auto;
129133
}
130134

apps/client/src/widgets/note_wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
5252

5353
const note = this.noteContext?.note;
5454
if (!note) {
55-
this.$widget.addClass("bgfx");
55+
this.$widget.addClass("bgfx empty-note");
5656
return;
5757
}
5858

0 commit comments

Comments
 (0)