Align comment images

This commit is contained in:
Sander Ferdinand 2018-08-19 15:50:24 +02:00
parent 104432562d
commit f8dbd59f05
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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 = `<img src="${line}"/></a><br>`;
line = `<br><img src="${line}"/></a><br>`;
} else if (line.startsWith('https://i.imgur.com/')) {
line = `<img src="${line}"/></a><br>`;
line = `<br><img src="${line}"/></a><br>`;
}
}