impr: use Fixate component

This commit is contained in:
James Xylight committed 2025-08-30 15:11:35 -07:00
1 parent d93d29a8b1
commit e4c8d667f7
23 files changed
+66 -63

No files matched your search

@@ -0,0 +1,19 @@
<script lang="ts">
import type { Snippet } from 'svelte'
const placements = {
top: 'top-6 lg:top-22',
bottom: 'bottom-22 lg:bottom-6',
}
interface Props {
placement: keyof typeof placements
children?: Snippet
}
let { placement, children }: Props = $props()
</script>
<div class={['sticky z-30 mb-0', placements[placement]]}>
{@render children?.()}
</div>