From ce3506d5d0a386b44e241ca4eb54891a89c8d02f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 29 May 2025 17:44:00 +0300 Subject: [PATCH] feat(search): display calendar view if the right viewType attribute is set --- apps/client/src/widgets/view_widgets/calendar_view.ts | 8 ++++++++ docs/Release Notes/Release Notes/v0.94.0.md | 1 + 2 files changed, 9 insertions(+) diff --git a/apps/client/src/widgets/view_widgets/calendar_view.ts b/apps/client/src/widgets/view_widgets/calendar_view.ts index 8f953f416..6a7cf4a87 100644 --- a/apps/client/src/widgets/view_widgets/calendar_view.ts +++ b/apps/client/src/widgets/view_widgets/calendar_view.ts @@ -31,6 +31,14 @@ const TPL = /*html*/` color: unset; } + .search-result-widget-content .calendar-view { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + } + .calendar-container { height: 100%; --fc-page-bg-color: var(--main-background-color); diff --git a/docs/Release Notes/Release Notes/v0.94.0.md b/docs/Release Notes/Release Notes/v0.94.0.md index 0ba921a1d..1761b94ad 100644 --- a/docs/Release Notes/Release Notes/v0.94.0.md +++ b/docs/Release Notes/Release Notes/v0.94.0.md @@ -58,6 +58,7 @@ * Docker: Rootless [Dockerfiles are now available](https://github.com/TriliumNext/Notes/pull/1923/files) by @perfectra1n * [Text notes: add a way to move up and down text lines via a keyboard shortcut](https://github.com/TriliumNext/Notes/issues/1002) by @dogfuntom * [improve tab scroll UX by switching from instant to smooth behavior](https://github.com/TriliumNext/Notes/pull/2030) by @SiriusXT +* Calendar view: display calendar view if `#viewType=calendar` is set. ## 📖 Documentation