Skip to content

Build your personal knowledge base with Trilium Notes

link previews: tweak cursors

Adorian Doran1c051a232433
diff --git a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css b/apps/client/src/widgets/type_widgets/text/LinkEmbed.css
index ebcb8015ff..e22bd3aa11 100644
--- a/apps/client/src/widgets/type_widgets/text/LinkEmbed.css
+++ b/apps/client/src/widgets/type_widgets/text/LinkEmbed.css
@@ -19,7 +19,7 @@
/* ---------- Inline mention (favicon + title) ---------- */
-.link-mention {
+:root span.link-mention {
display: inline;
border-radius: 4px;
outline: none !important;
@@ -28,6 +28,10 @@
box-shadow: 0 0 0 2px var(--link-selection-outline-color);
background-color: var(--link-hover-background);
}
+
+ a {
+ cursor: default !important;
+ }
}
.link-mention-inner {
@@ -194,12 +198,16 @@
display: flex;
overflow: hidden;
color: inherit;
- cursor: pointer;
max-height: 120px;
background: var(--link-preview-card-background-color);
}
+.link-embed-card-image-wrapper,
+.link-embed-card-content {
+ cursor: default;
+}
+
/* 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);