fix tooltip positioning

This commit is contained in:
Jesse Winton
2025-06-02 09:18:18 -04:00
parent deca1e5cab
commit a55e9a36ce
2 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@
'border-gradient relative z-100 flex w-[190px] flex-col gap-2 rounded-[10px] p-2 backdrop-blur-lg before:rounded-[10px] after:rounded-[10px]',
{ 'bg-transparent': theme === 'dark', 'bg-white': theme === 'light' }
)}
style:transform={`translateX(${x + 250}px) translateY(${y - 620}px)`}
style:transform={`translateX(${x}px) translateY(${y - 650}px)`}
>
{#key tooltipData.city}
<span class="text-primary text-caption w-fit" bind:this={city}>