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
style/collections/dashboard tile: tweak footer buttons
Adorian Doran809a93f8f6f1
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.css b/apps/client/src/widgets/collections/legacy/ListOrGridView.cssindex 549dbced48..9e27a6b8b9 100644--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.css+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.css@@ -318,38 +318,44 @@height: 100%;}- .rendered-content:has(.file-footer) {- padding: 0;- }-img {max-height: 220px;object-fit: contain;}+ }+}- .file-footer {- display: flex;- gap: 8px;- justify-content: space-between;- padding: 0;-- .btn.btn-primary {- flex: 1;- margin: 0;- box-shadow: unset;- background: transparent;- border: 0;- border-radius: 0;- padding: 8px;- color: var(--main-text-color);-- &:hover {- background: var(--more-accented-background-color);- }-- &:active {- transform: none;- }+/* The file footer (Download / Open externally) of a note preview, in every surface that shows one: the+ grid/list cards and the dashboard tiles. Two flat buttons splitting the card's full width, rather than the+ default pair of solid Bootstrap pills. */+.note-list .note-book-card .note-book-content,+.dashboard-widget-content .note-book-content {+ .rendered-content:has(.file-footer) {+ padding: 0;+ }++ .file-footer {+ display: flex;+ gap: 8px;+ justify-content: space-between;+ padding: 0;++ .btn.btn-primary {+ flex: 1;+ margin: 0;+ box-shadow: unset;+ background: transparent;+ border: 0;+ border-radius: 0;+ padding: 8px;+ color: var(--main-text-color);++ &:hover {+ background: var(--more-accented-background-color);+ }++ &:active {+ transform: none;}}}