disable register form overflow-hidden when not all fields are filled to make register button tooltip fully visible

This commit is contained in:
bytedream 2023-08-25 20:07:57 +02:00
parent 4f99847d62
commit ff21190c54

@ -10,7 +10,11 @@
<title>Craftattack - Anmeldung</title>
</svelte:head>
<div class="absolute top-12 grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 shadow-lg overflow-hidden">
<!--the tooltip when not all fields are correctly filled won't completely show if the overflow is hidden-->
<div
class="absolute top-12 grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 shadow-lg"
class:overflow-hidden={registered}
>
{#if !registered}
<div class="col-[1] row-[1]" transition:fly={{ x: -200, duration: 300 }}>
<Register on:submit={() => (registered = true)} />