add whitespace and semi colon

This commit is contained in:
Sine Jespersen 2025-05-08 13:29:24 +02:00
parent 305435b4ef
commit 3886dee1ce

View File

@ -3,7 +3,7 @@
import { fade } from 'svelte/transition'; import { fade } from 'svelte/transition';
import { flyAndScale } from '$lib/utils/transitions'; import { flyAndScale } from '$lib/utils/transitions';
import * as FocusTrap from 'focus-trap' import * as FocusTrap from 'focus-trap';
export let show = true; export let show = true;
export let size = 'md'; export let size = 'md';
export let containerClassName = 'p-3'; export let containerClassName = 'p-3';
@ -46,7 +46,7 @@
onMount(() => { onMount(() => {
mounted = true; mounted = true;
}); });
$: if (show && modalElement) { $: if (show && modalElement) {
document.body.appendChild(modalElement); document.body.appendChild(modalElement);
focusTrap = FocusTrap.createFocusTrap(modalElement); focusTrap = FocusTrap.createFocusTrap(modalElement);