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(print): alignment of footnotes
Elian Doran70781b026154
diff --git a/apps/client/src/print.css b/apps/client/src/print.cssindex e5ebcb3a38..26577db648 100644--- a/apps/client/src/print.css+++ b/apps/client/src/print.css@@ -140,6 +140,16 @@ body[data-note-type="text"] .ck-content {li.footnote-item {position: relative;width: fit-content;+ /* The flex layout that top-aligns the number lives in style.css, which is not+ loaded in print mode (see index.ts), so the rules are replicated here. */+ display: flex;+ list-style: none;+ counter-increment: footnote-counter;+}++li.footnote-item::before {+ content: counter(footnote-counter) ". ";+ margin-right: 0.25em;}.ck-content .footnote-back-link {@@ -150,6 +160,7 @@ li.footnote-item {margin-top: 1em;border-top: 1px solid #ccc;padding-top: 1em;+ counter-reset: footnote-counter;}.ck-content .footnote-content {