Re work modal scrolling

This commit is contained in:
Jon Staab
2026-01-30 14:14:12 -08:00
parent 4169db33e6
commit 38c0a9d403
75 changed files with 2340 additions and 2030 deletions
+11 -2
View File
@@ -1,7 +1,16 @@
<script lang="ts">
import type {Component} from "svelte"
import {fade, translate} from "@lib/transition"
const {onClose, children} = $props()
type Props = {
onClose?: any
children: {
component: Component
props: Record<string, any>
}
}
const {onClose, children}: Props = $props()
</script>
<div class="drawer fixed inset-0 z-modal">
@@ -14,6 +23,6 @@
<div
class="scroll-container py-sai pr-sair absolute bottom-0 right-0 top-0 w-72 overflow-auto bg-base-200 text-base-content lg:w-96"
transition:translate={{axis: "x", duration: 300}}>
{@render children?.()}
<children.component {...children.props} />
</div>
</div>