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
style/link previews: use pointer cursor for non-editable content
Adorian Doran918610547e18
diff --git a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css b/apps/client/src/widgets/type_widgets/text/LinkEmbed.cssindex 32ac39546a..a1cf41e3e8 100644--- a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css+++ b/apps/client/src/widgets/type_widgets/text/LinkEmbed.css@@ -29,7 +29,9 @@background-color: var(--link-hover-background);}- a {+ /* In the editor the mention is a widget, not a live link, so suppress the pointer.+ In read mode (no .ck-widget) the anchor keeps its cursor: pointer below. */+ &.ck-widget a {cursor: default !important;}}@@ -208,6 +210,11 @@cursor: default;}+/* In read mode the card is a real link, so show a pointer (all: unset above clears it). */+:root *:not(.link-embed-preview-wrapper) > a.link-embed-card {+ cursor: pointer;+}+/* The hover effect is applied to the card, but not in editable mode */:root *:not(.link-embed-preview-wrapper) > a.link-embed-card:hover {background: var(--card-background-hover-color);