A platform for community discussion. Free, open, simple.
UX: add class to inline-footnote to display as inline-block (#34515)
chapoiefe3d2ae8394
diff --git a/plugins/footnote/assets/javascripts/api-initializers/inline-footnotes.gjs b/plugins/footnote/assets/javascripts/api-initializers/inline-footnotes.gjsindex 35f6b536bb0..ad9598b8391 100644--- a/plugins/footnote/assets/javascripts/api-initializers/inline-footnotes.gjs+++ b/plugins/footnote/assets/javascripts/api-initializers/inline-footnotes.gjs@@ -56,6 +56,7 @@ export default apiInitializer((api) => {const footnoteContent = elem.querySelector(footnoteId)?.innerHTML;const expandableFootnote = document.createElement("span");+ expandableFootnote.className = "inline-footnote";footnoteRef.replaceWith(expandableFootnote);helper.renderGlimmer(expandableFootnote, InlineFootnote, {diff --git a/plugins/footnote/assets/stylesheets/footnotes.scss b/plugins/footnote/assets/stylesheets/footnotes.scssindex ea5c3739e86..1f2daf647b4 100644--- a/plugins/footnote/assets/stylesheets/footnotes.scss+++ b/plugins/footnote/assets/stylesheets/footnotes.scss@@ -16,6 +16,10 @@}}+ .inline-footnote {+ display: inline-block;+ }+// This is hack to work with lazy-loading, we will trick the browser// to believe the image is in the DOM and can be loaded.footnotes-list,