diff --git a/src/routes/cospend/+layout.svelte b/src/routes/cospend/+layout.svelte
index 88a7120..a743158 100644
--- a/src/routes/cospend/+layout.svelte
+++ b/src/routes/cospend/+layout.svelte
@@ -2,6 +2,8 @@
import { page } from '$app/stores';
import { onMount } from 'svelte';
import { goto } from '$app/navigation';
+ import { fly } from 'svelte/transition';
+ import { quintOut } from 'svelte/easing';
import PaymentModal from '$lib/components/PaymentModal.svelte';
let showModal = false;
@@ -41,7 +43,11 @@
{#if showModal}
-
showModal = false} />
+ {#key paymentId}
+
+
showModal = false} />
+
+ {/key}
{/if}
@@ -82,19 +88,17 @@
}
.modal-content {
- opacity: 0;
- animation: fadeIn 0.3s ease-out 0.1s forwards;
+ position: relative;
+ height: 100%;
}
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateX(20px);
- }
- to {
- opacity: 1;
- transform: translateX(0);
- }
+ .modal-content > div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ overflow-y: auto;
}
@media (max-width: 768px) {