Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Apply minor layout fixes to campaign page and page headr tabs.

Kailash Nadhb92c9c6b7753
diff --git a/static/admin/assets/css/style.css b/static/admin/assets/css/style.css
index 0e78298d..e3f11e15 100644
--- a/static/admin/assets/css/style.css
+++ b/static/admin/assets/css/style.css
@@ -651,6 +651,7 @@ main {
/* Components */
.page-header {
+ min-height: calc(1lh + 2 * var(--space-2) + 2px);
margin-bottom: var(--space-6);
.back {
@@ -906,8 +907,6 @@ td > .empty-state {
visual-editor {
display: block;
- border: 1px solid var(--border);
- border-radius: var(--radius-small);
width: 100%;
iframe {
@@ -1148,9 +1147,14 @@ section.campaign {
}
}
- .editor .editor-body {
- position: relative;
- min-height: 65vh;
+ .editor {
+ .editor-body {
+ position: relative;
+ min-height: 65vh;
+ }
+ .editor-box {
+ padding: 0;
+ }
}
[role="tabpanel"] {
diff --git a/static/admin/partials/campaign-content.html b/static/admin/partials/campaign-content.html
index 504010fc..83cb1f76 100644
--- a/static/admin/partials/campaign-content.html
+++ b/static/admin/partials/campaign-content.html
@@ -4,8 +4,8 @@
{{- $canManage := .CanManage -}}
{{- $canSend := .CanSend -}}
<div class="page-content content editor">
- <fieldset class="card">
- <legend>{{ $root.L.T "campaigns.content" }}</legend>
+ <fieldset class="card editor-box">
+ <!-- <legend>{{ $root.L.T "campaigns.content" }}</legend> -->
<div class="editor-body" :class="{ 'is-loading': showEditorSpinner }" @editor-ready="editorReady = true" @campaign-save.window="onSave" @campaign-preview.window="onPreviewContent" @richtext-media="onEditorMedia($event)" @visual-media="onEditorMedia($event)" @editor-change="form.body = $event.detail.body; form.body_source = $event.detail.source">
<template x-if="contentReady && form.content_type === 'richtext'">
{{ template "richtext-editor" dict "Root" $root "Body" $c.Body "Disabled" (not (or (eq $c.Status "draft") (eq $c.Status "scheduled") (eq $c.Status "paused"))) }}