feat(views/calendar): make calendar full height

This commit is contained in:
Elian Doran
2025-02-21 17:17:53 +02:00
parent 300bb561bb
commit 710cf68c06
4 changed files with 21 additions and 1 deletions

View File

@@ -15,6 +15,11 @@ const TPL = `
.note-list-widget .note-list {
padding: 10px;
}
.note-list-widget.full-height,
.note-list-widget.full-height .note-list-widget-content {
height: 100%;
}
</style>
<div class="note-list-widget-content">
@@ -68,6 +73,7 @@ export default class NoteListWidget extends NoteContextAwareWidget {
async renderNoteList(note: FNote) {
const noteListRenderer = new NoteListRenderer(this.$content, note, note.getChildNoteIds());
this.$widget.toggleClass("full-height", noteListRenderer.isFullHeight);
await noteListRenderer.renderList();
this.viewMode = noteListRenderer.viewMode;
}