Skip to content

Build your personal knowledge base with Trilium Notes

fix(print): alignment of footnotes

Elian Doran70781b026154
diff --git a/apps/client/src/print.css b/apps/client/src/print.css
index 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 {