diff options
| author | Fuwn <[email protected]> | 2024-04-16 16:14:17 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-04-16 16:14:17 -0700 |
| commit | 72ec81b339717c534e5a5c2b144cb17f646682c2 (patch) | |
| tree | 0177a6942b04969c2caa1758378a7304c1e5d20c /src/lib/List/Anime | |
| parent | feat(tooltip): sliding tooltip (diff) | |
| download | due.moe-72ec81b339717c534e5a5c2b144cb17f646682c2.tar.xz due.moe-72ec81b339717c534e5a5c2b144cb17f646682c2.zip | |
style(tooltip): remove extra lines
Diffstat (limited to 'src/lib/List/Anime')
| -rw-r--r-- | src/lib/List/Anime/Tooltip.svelte | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/List/Anime/Tooltip.svelte b/src/lib/List/Anime/Tooltip.svelte index 428943a0..1a5eb665 100644 --- a/src/lib/List/Anime/Tooltip.svelte +++ b/src/lib/List/Anime/Tooltip.svelte @@ -20,13 +20,11 @@ const createTooltip = () => { if (!tooltipDiv) { tooltipDiv = document.createElement('div'); - tooltipDiv.style.position = 'absolute'; tooltipDiv.style.zIndex = '1000'; opacity = 0; tooltipDiv.style.pointerEvents = 'none'; tooltipDiv.style.whiteSpace = 'nowrap'; - tooltipDiv.style.zIndex = '1000'; tooltipDiv.classList.add('card'); tooltipDiv.classList.add('card-small'); @@ -105,6 +103,7 @@ hideTimeout = window.setTimeout(() => { if (tooltipDiv) { document.body.removeChild(tooltipDiv); + tooltipDiv = null; } }, tooltipTransitionTime); |