Skip to content

Build your personal knowledge base with Trilium Notes

feat(search): display calendar view if the right viewType attribute is set

Elian Dorance3506d5d0a3
diff --git a/apps/client/src/widgets/view_widgets/calendar_view.ts b/apps/client/src/widgets/view_widgets/calendar_view.ts
index 8f953f416a..6a7cf4a876 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 0ba921a1dc..1761b94ad3 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