This commit is contained in:
Jon Staab
2024-10-17 16:03:50 -07:00
parent 2f561149fa
commit fd5b0a9af3
33 changed files with 129 additions and 140 deletions
+4 -3
View File
@@ -1,11 +1,12 @@
<script lang="ts">
import {noop} from '@welshman/lib'
import {noop} from "@welshman/lib"
import {fade, fly} from "@lib/transition"
export let onClose: any = noop
export let fullscreen = false
$: extraClass = !fullscreen && "card2 bg-alt max-h-[90vh] w-[90vw] overflow-auto text-base-content sm:w-[520px]"
$: extraClass =
!fullscreen && "card2 bg-alt max-h-[90vh] w-[90vw] overflow-auto text-base-content sm:w-[520px]"
</script>
<div class="center fixed inset-0 z-modal">
@@ -13,7 +14,7 @@
class="absolute inset-0 cursor-pointer bg-black opacity-75"
transition:fade={{duration: 300}}
on:click={onClose} />
<div class="relative scroll-container {extraClass}" transition:fly={{duration: 300}}>
<div class="scroll-container relative {extraClass}" transition:fly={{duration: 300}}>
<slot />
</div>
</div>