diff --git a/src/app/components/ContentLinkBlock.svelte b/src/app/components/ContentLinkBlock.svelte index 5f49ad94..45cade14 100644 --- a/src/app/components/ContentLinkBlock.svelte +++ b/src/app/components/ContentLinkBlock.svelte @@ -1,7 +1,10 @@ {:else if url.match(/\.(jpe?g|png|gif|webp)$/)} - Link preview + {:else} {#await loadPreview()}
diff --git a/src/app/components/ContentLinkDetail.svelte b/src/app/components/ContentLinkDetail.svelte new file mode 100644 index 00000000..a4022932 --- /dev/null +++ b/src/app/components/ContentLinkDetail.svelte @@ -0,0 +1,12 @@ + + + diff --git a/src/app/components/ModalContainer.svelte b/src/app/components/ModalContainer.svelte index 8b9ec74e..6dbebcfe 100644 --- a/src/app/components/ModalContainer.svelte +++ b/src/app/components/ModalContainer.svelte @@ -20,13 +20,13 @@ {#if hashIsValid && modal?.options?.drawer} - + {#key modal.id} {/key} {:else if hashIsValid && modal} - + {#key modal.id} {/key} diff --git a/src/app/modal.ts b/src/app/modal.ts index c474987d..33778796 100644 --- a/src/app/modal.ts +++ b/src/app/modal.ts @@ -5,6 +5,7 @@ import {goto} from "$app/navigation" export type ModalOptions = { drawer?: boolean + fullscreen?: boolean } export type Modal = { diff --git a/src/lib/components/Dialog.svelte b/src/lib/components/Dialog.svelte index 12ed1c72..6ac8cf3e 100644 --- a/src/lib/components/Dialog.svelte +++ b/src/lib/components/Dialog.svelte @@ -3,17 +3,17 @@ import {fade, fly} from "@lib/transition" export let onClose: any = noop + export let fullscreen = false + + $: extraClass = !fullscreen && "card2 bg-alt max-h-[90vh] w-[90vw] overflow-auto text-base-content sm:w-[520px]"