2025-03-19 17:30:36 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {Snippet} from "svelte"
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
element?: Element
|
|
|
|
|
children?: Snippet
|
|
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let {children, element = $bindable(), ...props}: Props = $props()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
{...props}
|
|
|
|
|
bind:this={element}
|
2025-05-08 16:07:24 +00:00
|
|
|
class="scroll-container cw fixed top-12 h-[calc(100%-6.5rem)] overflow-y-auto overflow-x-hidden md:h-[calc(100%-3rem)] {props.class}">
|
2025-03-19 17:30:36 +00:00
|
|
|
{@render children?.()}
|
|
|
|
|
</div>
|