Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): bad rendering of link preview in figcaption

Elian Doranbd7fae99b1e7
diff --git a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css b/apps/client/src/widgets/type_widgets/text/LinkEmbed.css
index a1cf41e3e8..d3f644d2f8 100644
--- a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css
+++ b/apps/client/src/widgets/type_widgets/text/LinkEmbed.css
@@ -66,6 +66,12 @@
flex-shrink: 0;
}
+.ck-content .image img.link-embed-mention-favicon {
+ min-width: unset;
+ margin: 0 4px 0 0;
+ display: unset;
+}
+
.link-embed-mention-dot {
display: inline-block;
width: 8px;
@@ -136,7 +142,7 @@
/* ---------- Click-to-play facade ----------
Shown in place of the player until the user asks for it, so opening a note never contacts
YouTube. The thumbnail is the one stored in the note, not a remote one. */
-
+
.link-embed-video-facade {
position: relative;