fix menu tooltip being always shown on top
All checks were successful
delpoy / build-and-deploy (push) Successful in 55s

This commit is contained in:
bytedream 2024-12-01 13:30:16 +01:00
parent b823e198ab
commit b5e0dfad8c

View File

@ -3,7 +3,6 @@
import { env } from '$env/dynamic/public';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { browser } from '$app/environment';
let navPaths = [
{
@ -129,7 +128,8 @@
{#each navPaths as navPath, i}
<li
class="flex justify-center tooltip"
class:tooltip-left,sm:tooltip-right={windowHeight > 450}
class:tooltip-left={windowHeight > 450}
class:sm:tooltip-right={windowHeight > 450}
class:tooltip-top={windowHeight <= 450}
class:tooltip-open={isTouch || windowHeight <= 450}
data-tip={navPath.name}