fix(note_list): note tooltip showing up

This commit is contained in:
Elian Doran 2025-08-01 13:05:17 +03:00
parent faeea6af18
commit 8be5b149c4
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,8 @@ let openTooltipElements: JQuery<HTMLElement>[] = [];
let dismissTimer: ReturnType<typeof setTimeout>; let dismissTimer: ReturnType<typeof setTimeout>;
function setupGlobalTooltip() { function setupGlobalTooltip() {
$(document).on("mouseenter", "a", mouseEnterHandler); $(document).on("mouseenter", "a:not(.no-tooltip-preview)", mouseEnterHandler);
$(document).on("mouseenter", "[data-href]", mouseEnterHandler); $(document).on("mouseenter", "[data-href]:not(.no-tooltip-preview)", mouseEnterHandler);
// close any note tooltip after click, this fixes the problem that sometimes tooltips remained on the screen // close any note tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
$(document).on("click", (e) => { $(document).on("click", (e) => {

View File

@ -292,6 +292,7 @@ class ListOrGridView extends ViewMode<{}> {
const $card = $('<div class="note-book-card">') const $card = $('<div class="note-book-card">')
.attr("data-note-id", note.noteId) .attr("data-note-id", note.noteId)
.addClass("no-tooltip-preview")
.append( .append(
$('<h5 class="note-book-header">') $('<h5 class="note-book-header">')
.append($expander) .append($expander)