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(client): keep the reference link icon on the line of the title (closes #11459)
matt wilkie547365c20bcd
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 1f141a832a..729dcf4b58 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -2288,9 +2288,22 @@ button.close:hover {}.reference-link .tn-icon {+ /* A line can wrap after an inline-block. An inline box that does not wrap and ends with a+ word joiner keeps the icon on the line of the first title character. */+ display: inline;position: relative;top: 1px;margin-inline-end: 3px;+ white-space: nowrap;+}++.reference-link .tn-icon::before {+ /* An inline-block glyph does not take the underline of the link. */+ display: inline-block;+}++.reference-link .tn-icon::after {+ content: "\2060";}/* The board column a reference points at. `--custom-color` is set by the theme ondiff --git a/packages/share-theme/src/styles/content.css b/packages/share-theme/src/styles/content.cssindex b461b7fb24..393a7e2f01 100644--- a/packages/share-theme/src/styles/content.css+++ b/packages/share-theme/src/styles/content.css@@ -57,7 +57,20 @@}a.reference-link > span > .tn-icon {+ /* A line can wrap after an inline-block. An inline box that does not wrap and ends with a+ word joiner keeps the icon on the line of the first title character. */+ display: inline;margin-inline-end: 3px;+ white-space: nowrap;+}++a.reference-link > span > .tn-icon::before {+ /* An inline-block glyph does not take the underline of the link. */+ display: inline-block;+}++a.reference-link > span > .tn-icon::after {+ content: "\2060";}body:not(.math-loaded) .math-tex {