Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(calendar): give the ghost sheet the form's own layout
Elian Doran26d77bd78ae3
diff --git a/apps/client/src/widgets/collections/calendar/GhostPopover.css b/apps/client/src/widgets/collections/calendar/GhostPopover.cssindex 2de6b84ab3..c8a6640d26 100644--- a/apps/client/src/widgets/collections/calendar/GhostPopover.css+++ b/apps/client/src/widgets/collections/calendar/GhostPopover.css@@ -1,11 +1,35 @@/*- * As a sheet (see the mobile shell in GhostPopover.tsx), the dialog brings the heading and the way- * out; what is left is the form, which gives up the padding the dialog's own body already keeps.+ * The form itself, which both shells hold (see GhostPopover.tsx): the name, what the drag decided,+ * and the way to make the event of it. Named for each shell rather than nested under the popover+ * alone — the sheet is a dialog of the app's, not a card of the calendar's, so a rule written for+ * the one reaches the other only by saying so.*/-.calendar-ghost-sheet .calendar-ghost-body {- padding: 0;+.calendar-ghost-popover,+.calendar-ghost-sheet {+ .calendar-ghost-body {+ display: flex;+ flex-direction: column;+ gap: 12px;+ }++ .calendar-ghost-when {+ display: flex;+ align-items: center;+ gap: 6px;+ color: var(--muted-text-color);+ font-size: 0.9em;+ }++ .calendar-ghost-actions {+ display: flex;+ justify-content: flex-end;+ }}+/*+ * The card standing beside the dragged range, which brings its own heading, its own way out and the+ * room around what it holds — all of which a dialog brings for the sheet.+ */.calendar-ghost-popover {width: 300px;@@ -25,22 +49,6 @@}.calendar-ghost-body {- display: flex;- flex-direction: column;- gap: 12px;padding: 10px;}-- .calendar-ghost-when {- display: flex;- align-items: center;- gap: 6px;- color: var(--muted-text-color);- font-size: 0.9em;- }-- .calendar-ghost-actions {- display: flex;- justify-content: flex-end;- }}