From b730e9c6db0d5aff62c64d6ee54a36a1d951a6ed Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 31 Jan 2024 17:09:52 +0100 Subject: [PATCH] Center align media elements in article template Improved visual consistency in 'article.html' by adding 'justify-content-center' to each media row, ensuring images, videos, and iframes are centered within their containers. Additionally, applied 'wrap' class to text content for enhanced readability. These changes cater to better user engagement and a more polished layout presentation. --- templates/article.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/article.html b/templates/article.html index 25f1cf2..08ace40 100644 --- a/templates/article.html +++ b/templates/article.html @@ -21,7 +21,7 @@ {% if step.imgs %} -
+
{% for step_img in step.imgs %}
{{ step_img.alt }} @@ -31,7 +31,7 @@ {% endif %} {% if step.videos %} -
+
{% for step_video in step.videos %}
@@ -41,7 +41,7 @@ {% endif %} {% if step.iframes %} -
+
{% for step_iframe in step.iframes %}
@@ -64,7 +64,7 @@ {% endif %}
-
+
{{ step.text|safe }}