File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,10 @@ function linkContextMenu(e: PointerEvent) {
361
361
const $link = $ ( e . target as any ) . closest ( "a" ) ;
362
362
const url = $link . attr ( "href" ) || $link . attr ( "data-href" ) ;
363
363
364
+ if ( $link . attr ( "data-no-context-menu" ) ) {
365
+ return ;
366
+ }
367
+
364
368
const { notePath, viewScope } = parseNavigationStateFromUrl ( url ) ;
365
369
366
370
if ( ! notePath ) {
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ async function renderTooltip(note: FNote | null) {
155
155
if ( isContentEmpty ) {
156
156
classes . push ( "note-no-content" ) ;
157
157
}
158
- content = `<h5 class="${ classes . join ( " " ) } ">${ noteTitleWithPathAsSuffix . prop ( "outerHTML" ) } </h5>` ;
158
+ content = `<h5 class="${ classes . join ( " " ) } "><a href="# ${ note . noteId } " data-no-context-menu="true"> ${ noteTitleWithPathAsSuffix . prop ( "outerHTML" ) } </a> </h5>` ;
159
159
}
160
160
161
161
content = `${ content } <div class="note-tooltip-attributes">${ $renderedAttributes [ 0 ] . outerHTML } </div>` ;
Original file line number Diff line number Diff line change @@ -1214,6 +1214,10 @@ body .calendar-dropdown-widget .calendar-body a:hover {
1214
1214
flex-direction : column-reverse;
1215
1215
}
1216
1216
1217
+ .note-tooltip-title a {
1218
+ color : inherit !important ;
1219
+ }
1220
+
1217
1221
.note-tooltip-title .note-no-content {
1218
1222
margin : 0 ;
1219
1223
}
You can’t perform that action at this time.
0 commit comments