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(share): let external links wrap and mark only those in the content
Elian Doran0f9a6ed6e86f
diff --git a/packages/share-theme/src/content/external_links.css b/packages/share-theme/src/content/external_links.cssindex f8e5b6edad..e9c7072b1b 100644--- a/packages/share-theme/src/content/external_links.css+++ b/packages/share-theme/src/content/external_links.css@@ -1,19 +1,10 @@-a[href^="https://"] {- display: inline-flex;- align-items: center;- gap: 6px;-}--#content a[href^="https://"] {- padding-right: 6px;-}--a[href^="https://"]::after {+#content :is(a[href^="https://"], a[href^="http://"]):not(.link-embed-mention, .link-embed-card)::after {content: "";+ display: inline-block;+ width: 0.85em;+ height: 0.85em;+ margin-inline-start: 0.3em;+ vertical-align: -0.05em;background-color: currentcolor;- mask: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13.5\" height=\"13.5\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z\"></path></svg>");- -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13.5\" height=\"13.5\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z\"></path></svg>");- width: 13.5px;- height: 13.5px;- display: inline-flex;-}\ No newline at end of file+ mask: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z\"></path></svg>") center / contain no-repeat;+}