mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: enhance tooltip functionality; prevent empty tooltips for paste titles
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user