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(collections): keep a collection visible under tall content (closes #8530)
Elian Doran259c9084d8ab
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex ba14d732cc..f21a5b6849 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -2565,7 +2565,7 @@ iframe.print-iframe {/* Scrolling container */-.note-split:not(.type-text.view-mode-normal) > .scrolling-container:has(> :is(.note-detail.full-height, .note-list-widget.full-height)) {+.note-split > .scrolling-container:has(> :is(.note-detail.full-height, .note-list-widget.full-height)) {display: flex;flex-direction: column;}@@ -2578,6 +2578,13 @@ iframe.print-iframe {overflow: hidden;}+/* Fills what the content above leaves, but never less than half the container, so content taller+ than the container pushes the collection below it instead of squeezing it to nothing. */+.scrolling-container > .note-list-widget.full-height {+ flex: 1 0 0;+ min-height: 50%;+}+/* A full-height note fills the container instead of scrolling it, so the padding that letsflowing content scroll past its end would only take height away from the note. */.scrolling-container:has(> .note-detail.full-height) > .scroll-padding-widget {diff --git a/apps/client/src/widgets/collections/table/index.css b/apps/client/src/widgets/collections/table/index.cssindex c7dde57829..daf54ec102 100644--- a/apps/client/src/widgets/collections/table/index.css+++ b/apps/client/src/widgets/collections/table/index.css@@ -15,6 +15,21 @@height: 100%;}+/* Under a note's own content the table grows with its rows, so that only the note scrolls; a book+ has no content above it, and keeps a bounded table that scrolls by itself. */+.note-split:not(.type-book) > .scrolling-container > .note-list-widget.full-height:has(> .note-list-widget-content > .table-view) {+ flex: none;+ height: auto;+ min-height: 0;+ overflow: visible;++ .note-list-widget-content,+ .table-view,+ .table-view-container {+ height: auto;+ }+}+.tabulator-cell .autocomplete {position: absolute;top: 50%;