tooltip position

This commit is contained in:
Jesse Winton
2025-06-02 09:34:37 -04:00
parent a55e9a36ce
commit cf6221caa0
2 changed files with 17 additions and 8 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}px) translateY(${y - 650}px)`}
style:transform={`translateX(${x + 20}px) translateY(${y - 425}px)`}
>
{#key tooltipData.city}
<span class="text-primary text-caption w-fit" bind:this={city}>