gijl/lv-storage / llama.cpp /tools /ui /src /lib /components /app /dialogs /DialogMermaidPreview.svelte
gijl's picture
download
raw
587 Bytes
<script lang="ts">
import { MermaidPreview } from '$lib/components/app/content';
import * as Dialog from '$lib/components/ui/dialog/index.js';
interface Props {
open: boolean;
svgHtml: string;
onOpenChange?: (open: boolean) => void;
}
let { onOpenChange, open = $bindable(), svgHtml }: Props = $props();
</script>
<Dialog.Root bind:open {onOpenChange}>
<Dialog.Content
class="z-999999 grid max-h-full max-w-full! grid-rows-[1fr_auto] overflow-hidden p-0 md:h-[90vh] md:max-w-[90vw]!"
showCloseButton
>
<MermaidPreview {svgHtml} />
</Dialog.Content>
</Dialog.Root>

Xet Storage Details

Size:
587 Bytes
·
Xet hash:
7a4f9b94f211102cb5d3983e15f871ff66cc22660a8d9c8031a7191cc8b44185

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.