fix menu tooltip being always shown on top
All checks were successful
delpoy / build-and-deploy (push) Successful in 55s
All checks were successful
delpoy / build-and-deploy (push) Successful in 55s
This commit is contained in:
parent
b823e198ab
commit
b5e0dfad8c
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user