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
link previews: fix some issues
Adorian Doranae468081e908
diff --git a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css b/apps/client/src/widgets/type_widgets/text/LinkEmbed.cssindex e8395b7fff..32ac39546a 100644--- a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css+++ b/apps/client/src/widgets/type_widgets/text/LinkEmbed.css@@ -49,8 +49,8 @@/* inline (not inline-flex) so a long link wraps line-by-line through the paragraph;clone keeps each wrapped fragment's padding/rounded corners where a background applies. */- box-decoration-break: clone;-webkit-box-decoration-break: clone;+ box-decoration-break: clone;}.link-embed-mention:hover {@@ -203,8 +203,8 @@background: var(--link-preview-card-background-color);}-.link-embed-card-image-wrapper,-.link-embed-card-content {+.link-embed-preview-wrapper .link-embed-card-image-wrapper,+.link-embed-preview-wrapper .link-embed-card-content {cursor: default;}diff --git a/apps/client/src/widgets/type_widgets/text/toolbar.spec.ts b/apps/client/src/widgets/type_widgets/text/toolbar.spec.tsindex 5888d179b9..5eb1418128 100644--- a/apps/client/src/widgets/type_widgets/text/toolbar.spec.ts+++ b/apps/client/src/widgets/type_widgets/text/toolbar.spec.ts@@ -29,8 +29,15 @@ describe("CKEditor config", () => {return result.flat();}+ // Undo/redo live only on the fixed toolbar — they're always reachable via keyboard and+ // have no natural slot in the floating selection/block toolbar — so exclude them from the+ // fixed-vs-floating parity check.+ const FIXED_ONLY_ITEMS = new Set(["undo", "redo"]);+const classicToolbarConfig = buildClassicToolbar(false);- const classicToolbarItems = new Set(traverseItems(classicToolbarConfig.toolbar));+ const classicToolbarItems = new Set(+ traverseItems(classicToolbarConfig.toolbar).filter((item) => !FIXED_ONLY_ITEMS.has(item))+ );const floatingToolbarConfig = buildFloatingToolbar();const floatingToolbarItems = traverseItems(floatingToolbarConfig.toolbar);diff --git a/packages/share-theme/src/styles/link-embed.css b/packages/share-theme/src/styles/link-embed.cssindex 84fc5323e6..8a0a3da4af 100644--- a/packages/share-theme/src/styles/link-embed.css+++ b/packages/share-theme/src/styles/link-embed.css@@ -17,8 +17,8 @@/* inline (not inline-flex) so a long link wraps line-by-line through the paragraph;clone keeps each wrapped fragment's padding/rounded corners and background. */- box-decoration-break: clone;-webkit-box-decoration-break: clone;+ box-decoration-break: clone;}.link-embed-mention:hover {@@ -100,7 +100,7 @@height: 100%;object-fit: cover;display: block;- filter: blur(20px) brightness(.65);+ filter: blur(20px) brightness(0.65);}.link-embed-video-play {