Fix thumbnail links in renderer

This commit is contained in:
chylex 2016-10-30 23:42:32 +01:00
parent 6a9d6607ed
commit 6a6a44c04d
2 changed files with 3 additions and 4 deletions

View File

@ -42,7 +42,7 @@ var DISCORD = (function(){
].join(""));
templateEmbedImage = new TEMPLATE([
"<a href='{url}' class='embed'><img src='{url}' title='(image attachment not found)'></a>"
"<a href='{url}' class='embed thumbnail'><img src='{url}' title='(image attachment not found)'></a><br>"
].join(""));
templateEmbedDownload = new TEMPLATE([

View File

@ -194,18 +194,17 @@ body {
}
.message .embed {
display: block;
display: inline-block;
margin-top: 8px;
}
.message img {
.message .thumbnail img {
max-height: 320px;
max-width: calc(100vw - 299px);
border-radius: 3px;
}
.message .download {
display: inline-block;
margin-right: 8px;
padding: 8px 9px;
border: 1px solid rgba(255, 255, 255, 0.5);