fixes/immediate #23

Merged
ilia merged 9 commits from fixes/immediate into main 2026-02-10 08:50:46 +00:00
Showing only changes of commit 6945169279 - Show all commits

View File

@@ -28,9 +28,10 @@ import {
interface Props {
class?: string;
hidden?: boolean;
}
const { class: className }: Props = $props();
const { class: className, hidden = false }: Props = $props();
const responsive = getContext<ResponsiveManager>('responsive');
const [send, receive] = crossfade({
@@ -71,7 +72,7 @@ $effect(() => {
</script>
<div
class={cn('w-auto max-screen z-10 flex justify-center', className)}
class={cn('w-auto max-screen z-10 flex justify-center', hidden && 'hidden', className)}
in:receive={{ key: 'panel' }}
out:send={{ key: 'panel' }}
>