From f8dbd59f05f4abf60fd91c8687b7fea7193ae180 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Sun, 19 Aug 2018 15:50:24 +0200 Subject: [PATCH] Align comment images --- wowfunding/static/css/wow.css | 2 -- wowfunding/templates/proposal/proposal.html | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wowfunding/static/css/wow.css b/wowfunding/static/css/wow.css index 6bec3ff..50b7fdf 100644 --- a/wowfunding/static/css/wow.css +++ b/wowfunding/static/css/wow.css @@ -582,8 +582,6 @@ ul.b { } .comments-panel .comment-container .media-body span.body img{ - margin-top:20px; - margin-bottom:10px; max-width:500px; max-height:600px; display: inline; diff --git a/wowfunding/templates/proposal/proposal.html b/wowfunding/templates/proposal/proposal.html index a49adeb..6e16925 100644 --- a/wowfunding/templates/proposal/proposal.html +++ b/wowfunding/templates/proposal/proposal.html @@ -208,9 +208,9 @@ line = line.trim(); if (line && line.search(regexp_url) != -1 && line.indexOf("..") < 0) { if (line.startsWith('https://i.imgflip.com/')) { - line = `
`; + line = `

`; } else if (line.startsWith('https://i.imgur.com/')) { - line = `
`; + line = `

`; } }