diff --git a/src/lib/modals/Channel.svelte b/src/lib/modals/Channel.svelte index 1ab59b7..9e0ee28 100644 --- a/src/lib/modals/Channel.svelte +++ b/src/lib/modals/Channel.svelte @@ -1,6 +1,6 @@ - - - - - { - clickable = true - }} - on:click|self={(e) => { - if ((clickable || e.type !== 'click') && !pos_within(e, dialogEl)) { - onCancel() - } - }} - on:keydown - on:keydown={(e) => { - if (e.key === 'Escape' && noEscapeHandling) { - e.preventDefault() - } - }} - on:keydown|self={(e) => { - if (form && e.key === 'Enter' && !e.metaKey) { - form() - e.preventDefault() - } - }} - on:cancel={(e) => { - e.preventDefault() - onCancel() - }} - transition:scale={{ duration: 200, start: 0.93, opacity: 0 }} - on:outrostart={() => { - backdrop = false - }} -> - { - clickable = false - }} - role="none" - > - {#if !noCloseIcon} - onCancel()} - fill="currentColor" - xmlns="http://www.w3.org/2000/svg" - width="12" - height="12" - viewBox="0 0 24 24" - > - {/if} - {#if title !== null} - {title} - {/if} - - {#if $$slots.buttons} - - - - {/if} - - - -