refactor: email template preview modal (#19119)

This commit is contained in:
Daniel Dietzler
2025-06-11 20:18:46 +02:00
committed by GitHub
parent 08e2b22db8
commit 7a001d27a5
2 changed files with 68 additions and 64 deletions

View File

@@ -0,0 +1,23 @@
<script lang="ts">
import { Modal, ModalBody } from '@immich/ui';
import { t } from 'svelte-i18n';
interface Props {
html: string;
onClose: () => void;
}
let { html, onClose }: Props = $props();
</script>
<Modal title={$t('admin.template_email_preview')} {onClose} size="giant">
<ModalBody>
<div class="relative w-full h-240 overflow-hidden">
<iframe
title={$t('admin.template_email_preview')}
srcdoc={html}
class="absolute top-0 left-0 w-full h-full border-none"
></iframe>
</div>
</ModalBody>
</Modal>