~metalune/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Fix img appearance

bopol
Details
Message ID
<20211119130226.8143-1-bopol@e.email>
DKIM signature
pass
Download raw message
Patch: +3 -10
---
 templates/site/page.html | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/templates/site/page.html b/templates/site/page.html
index 05fee55..945b0c3 100755
--- a/templates/site/page.html
+++ b/templates/site/page.html
@@ -35,18 +35,11 @@
        {% elif el.type == "code" %}
            <code>{{ el.value }}</code>
        {% elif el.type == "image" %}
            <img 
            {% if el.width %}
                width="{{ el.width }}"
            {% else %}
                width="100%"
            {% endif %}
            {% if el.height %}
                height="{{ el.height }}"
            {% endif %}
            <img
            {% if el.alt %}
                width="{{ el.alt }}"
                alt="{{ el.alt }}"
            {% endif %}
            style="width: 100%; object-fit: scale-down;"
            src="{{ el.src }}"/>
        {% elif el.type == "video" %}
            <video width="100%" controls>
-- 
2.31.1
Reply to thread Export thread (mbox)