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(text): give full-height collection include notes an explicit box-size height
Elian Doran63c1f54b8e0c
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 75712d15f4..6b45e2248b 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -1353,6 +1353,30 @@ body.mobile .modal-content-with-sidebar > .modal-main > .modal-header > .modal-theight: 20em;}+/* Full-height collection views (table, board, calendar, geo map, presentation) render their own+ scroll region with no intrinsic height, so — like PDFs and web views — they need an explicit+ height per box size. The inner widget fills it via its existing height:100% chain. List/grid+ collections are content-driven and keep the generic max-height above. */+.include-note[data-box-size="small"] .include-note-content.type-book:has(.note-list-widget.full-height),+.include-note[data-box-size="small"] .include-note-content.type-search:has(.note-list-widget.full-height) {+ height: 10em;+}++.include-note[data-box-size="medium"] .include-note-content.type-book:has(.note-list-widget.full-height),+.include-note[data-box-size="medium"] .include-note-content.type-search:has(.note-list-widget.full-height) {+ height: 20em;+}++.include-note[data-box-size="full"] .include-note-content.type-book:has(.note-list-widget.full-height),+.include-note[data-box-size="full"] .include-note-content.type-search:has(.note-list-widget.full-height) {+ height: 50em; /* a full-height view can't take a percentage full height, so fall back to a large fixed one */+}++.include-note[data-box-size="expandable"] .include-note-content.type-book:has(.note-list-widget.full-height),+.include-note[data-box-size="expandable"] .include-note-content.type-search:has(.note-list-widget.full-height) {+ height: 20em;+}+.include-note-wrapper {width: 100%;display: flex;@@ -1446,12 +1470,15 @@ body.mobile .modal-content-with-sidebar > .modal-main > .modal-header > .modal-tmargin-bottom: 0;}-/* Media that renders edge-to-edge (iframes, images, video) shouldn't be inset. */+/* Media that renders edge-to-edge (iframes, images, video, full-height collection views) shouldn't+ be inset. List/grid collections keep their padding (they are content-driven, not full-height). */.include-note-content.type-pdf,.include-note-content.type-image,.include-note-content.type-video,.include-note-content.type-canvas,-.include-note-content.type-webView {+.include-note-content.type-webView,+.include-note-content.type-book:has(.note-list-widget.full-height),+.include-note-content.type-search:has(.note-list-widget.full-height) {padding: 0;}