feat: enhance tooltip functionality; prevent empty tooltips for paste titles

This commit is contained in:
2025-12-29 04:27:26 -05:00
parent f61f31de0e
commit 7eb0204e67
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@ export function dateToRelativeString(date: Date, useSuffix = true): string {
}
export function tooltip(node: HTMLElement, text: string) {
if (!text || text.trim() === '') return;
let tooltipEl: HTMLDivElement | null;
let caretEl: HTMLDivElement | null;
let showTimeout: ReturnType<typeof setTimeout>;