This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 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) {
361361 const $link = $ ( e . target as any ) . closest ( "a" ) ;
362362 const url = $link . attr ( "href" ) || $link . attr ( "data-href" ) ;
363363
364+ if ( $link . attr ( "data-no-context-menu" ) ) {
365+ return ;
366+ }
367+
364368 const { notePath, viewScope } = parseNavigationStateFromUrl ( url ) ;
365369
366370 if ( ! notePath ) {
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ async function renderTooltip(note: FNote | null) {
155155 if ( isContentEmpty ) {
156156 classes . push ( "note-no-content" ) ;
157157 }
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>` ;
159159 }
160160
161161 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 {
12141214 flex-direction : column-reverse;
12151215}
12161216
1217+ .note-tooltip-title a {
1218+ color : inherit !important ;
1219+ }
1220+
12171221.note-tooltip-title .note-no-content {
12181222 margin : 0 ;
12191223}
You can’t perform that action at this time.
0 commit comments