From c8dd39556a14ccad6f7bbe413f3b4288357690c3 Mon Sep 17 00:00:00 2001 From: Christoph Kaiser Date: Fri, 19 Jun 2026 13:39:32 +0200 Subject: [PATCH] Enhance CodeMirror styling in email template change form. Now input fields for the standard template have a minimum width and a border. The fields are now clearly visible and similar styled like the other Admin input fields. --- .../templates/admin/post_office/emailtemplate/change_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post_office/templates/admin/post_office/emailtemplate/change_form.html b/post_office/templates/admin/post_office/emailtemplate/change_form.html index c2dde213..d1d943e7 100644 --- a/post_office/templates/admin/post_office/emailtemplate/change_form.html +++ b/post_office/templates/admin/post_office/emailtemplate/change_form.html @@ -30,7 +30,7 @@ CodeMirror.fromTextArea($('#id_content')[0], options); CodeMirror.fromTextArea($('#id_html_content')[0], options); - $('.CodeMirror').css('height', 'auto'); + $('.CodeMirror').css('height', 'auto').css('min-width', '30%').css('border', '1px solid var(--border-color)'); })(django.jQuery); {% endblock %}