Skip to content

Build your personal knowledge base with Trilium Notes

style(calendar): stand the event sheet as tall as the quick editor

Elian Dorana0b3546e6d8a
diff --git a/apps/client/src/widgets/collections/calendar/EventPopover.css b/apps/client/src/widgets/collections/calendar/EventPopover.css
index 6ed02505a1..af1294fef2 100644
--- a/apps/client/src/widgets/collections/calendar/EventPopover.css
+++ b/apps/client/src/widgets/collections/calendar/EventPopover.css
@@ -56,8 +56,23 @@
overflow: hidden;
}
-/* The body gives up the padding and the scrolling it keeps for itself in the popover: the dialog
- scrolls its own (`scrollable`), and pads it. */
+/*
+ * The dialog's own body takes what the head leaves and scrolls within it, which is what holds the
+ * sheet at its full height however little the event has to say. Its own scrolling rather than
+ * Bootstrap's `scrollable`: that hands the dialog back to its contents on a phone
+ * (`body.mobile .modal-dialog.modal-dialog-scrollable` in style.css sets `height: unset`), so the
+ * sheet would stand only as tall as the note within it. The quick editor scrolls its body for the
+ * same reason.
+ */
+.modal.calendar-event-sheet .modal-body {
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ overflow: auto;
+}
+
+/* The note's widgets give up the padding and the scrolling they keep for themselves in the
+ popover, both being the dialog's above. */
.modal.calendar-event-sheet .calendar-event-popover-body {
padding: 0;
overflow: visible;
diff --git a/apps/client/src/widgets/collections/calendar/EventPopover.tsx b/apps/client/src/widgets/collections/calendar/EventPopover.tsx
index d4a6dc3f80..bd25d10df8 100644
--- a/apps/client/src/widgets/collections/calendar/EventPopover.tsx
+++ b/apps/client/src/widgets/collections/calendar/EventPopover.tsx
@@ -164,7 +164,6 @@ function EventSheet({ note, parentNote, isEditable, onClose }: {
className="calendar-event-sheet"
size="lg"
title={<TitleRow />}
- scrollable
modalRef={modalRef}
show={shown}
onHidden={onClose}