Skip to content

armgit / posta

Public Imported from GitHub
0

Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.

fix(web): make HTML preview fill the template editor preview

Jonas Kanindab1586472cc21
diff --git a/web/src/views/templates/TemplateEditor.vue b/web/src/views/templates/TemplateEditor.vue
index 1844623..47811ca 100644
--- a/web/src/views/templates/TemplateEditor.vue
+++ b/web/src/views/templates/TemplateEditor.vue
@@ -392,7 +392,7 @@ function switchToVisualBuilder() {
<!-- Preview content -->
<div class="preview-content">
- <div v-if="previewTab === 'html'">
+ <div v-if="previewTab === 'html'" class="preview-html">
<iframe
v-if="preview?.html"
:srcdoc="preview.html"
@@ -600,7 +600,12 @@ function switchToVisualBuilder() {
overflow: auto;
}
+.preview-html {
+ height: 100%;
+}
+
.preview-iframe {
+ display: block;
width: 100%;
height: 100%;
min-height: 400px;