From 0fd3d0fe71c59b6c75835bc109adb7d105586ca0 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 3 Dec 2021 13:44:06 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20#2363=20=E2=80=93=20Email:=20change=20tex?= =?UTF-8?q?t-alignment=20from=20center=20to=20left=20(right=20for=20rtl)?= =?UTF-8?q?=20(#2364)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pretix/base/templates/pretixbase/email/base.html | 11 ++++++----- .../base/templates/pretixbase/email/simple_logo.html | 9 +++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/pretix/base/templates/pretixbase/email/base.html b/src/pretix/base/templates/pretixbase/email/base.html index ba8bf4565b..b7e24cbe4e 100644 --- a/src/pretix/base/templates/pretixbase/email/base.html +++ b/src/pretix/base/templates/pretixbase/email/base.html @@ -85,9 +85,6 @@ -webkit-hyphens: auto; hyphens: auto; } - p:last-child { - margin-bottom: 0; - } .footer { padding: 10px; @@ -116,6 +113,9 @@ width: 100%; height: auto; } + .content { + text-align: left; + } .content table { width: 100%; @@ -142,7 +142,8 @@ } .order-button { - padding-top: 5px + padding-top: 5px; + text-align: center; } .order-button a.button { font-size: 12px; @@ -173,7 +174,7 @@ body { direction: rtl; } - .content table td { + .content { text-align: right; } {% endif %} diff --git a/src/pretix/base/templates/pretixbase/email/simple_logo.html b/src/pretix/base/templates/pretixbase/email/simple_logo.html index 7c7bdbcdcb..229eb1c1f5 100644 --- a/src/pretix/base/templates/pretixbase/email/simple_logo.html +++ b/src/pretix/base/templates/pretixbase/email/simple_logo.html @@ -104,9 +104,6 @@ -webkit-hyphens: auto; hyphens: auto; } - p:last-child { - margin-bottom: 0; - } .footer { padding: 10px; @@ -136,6 +133,10 @@ display: block; } + .content { + text-align: left; + } + .content table { width: 100%; } @@ -197,7 +198,7 @@ body { direction: rtl; } - .content table td { + .content { text-align: right; } {% endif %}