diff --git a/src/lib/components/modals/JSONEditorModal.svelte b/src/lib/components/modals/JSONEditorModal.svelte index 35f594d4..624e5028 100644 --- a/src/lib/components/modals/JSONEditorModal.svelte +++ b/src/lib/components/modals/JSONEditorModal.svelte @@ -299,13 +299,17 @@ {/if} {#if !readOnly} - {:else} - + {/if} diff --git a/src/lib/components/modals/Modal.svelte b/src/lib/components/modals/Modal.svelte index 8bad845c..36682a9c 100644 --- a/src/lib/components/modals/Modal.svelte +++ b/src/lib/components/modals/Modal.svelte @@ -2,6 +2,7 @@ // code based on: https://svelte.dev/examples/modal import { onEscape } from '$lib/actions/onEscape.js' import { onDestroy, onMount } from 'svelte' + import { classnames } from '$lib/utils/cssUtils.js' export let className: string | undefined = undefined export let fullscreen = false @@ -23,10 +24,10 @@ on:close={close} on:click|self={close} use:onEscape={close} - class={className} + class={classnames('jse-modal', className)} class:jse-fullscreen={fullscreen} > -
+
@@ -34,7 +35,7 @@