fix: properly disable window anim and focus on mobile

This commit is contained in:
dusk 2025-04-04 10:00:59 +03:00
parent 8f10f4c6ac
commit a81ebc9b1b
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
2 changed files with 3 additions and 2 deletions
src

@ -49,6 +49,7 @@
const _draggable = isOnMobile ? () => {} : draggable;
const focusWindow = (node: HTMLElement) => {
if (isOnMobile) return;
$highestZIndex += 1;
node.style.zIndex = $highestZIndex.toString();
};
@ -77,7 +78,7 @@
{tooltip ? 'min-w-fit' : 'min-w-[30ch] lg:min-w-[40ch]'}
bg-ralsei-black border-ralsei-white border-ridge
{tooltip ? 'border-[6px] border-t-[9px]' : 'border-8 border-t-[12px]'}
{!isOnMobile && tooltip ? '' : 'hover:-translate-x-1 hover:translate-y-1'}
{isOnMobile || tooltip ? '' : 'hover:-translate-x-1 hover:translate-y-1'}
animate-{chosenKeyframe} drop-shadow-[24px_24px_24px_rgba(1,1,1,0.8)]
{style}
"

@ -134,7 +134,7 @@
</Window>
<Window title="notify me">
<form
class="flex flex-row gap-1"
class="flex flex-row gap-1 place-self-center"
method="post"
onsubmit={(event) => {
event.preventDefault();