move inline style to the theme implementation

This commit is contained in:
twisterarmy 2025-04-27 03:24:31 +03:00
parent 716cfbb597
commit 11b3b4d665
4 changed files with 11 additions and 1 deletions

View File

@ -902,7 +902,7 @@ function setPostImagePreview(elem, links) {
for (var i = 0; i < links.length; i++) {
if (/^[^?]+\.(?:jpe?g|gif|png|webp)$/i.test(links[i].href)) {
var url = proxyURL(links[i].href);
previewContainer.append($('<img src="' + url + '" class="image-preview" width="100%" />'));
previewContainer.append($('<img src="' + url + '" class="image-preview" />'));
}
}
}

View File

@ -1065,6 +1065,10 @@ samp {
background: black;
}
.preview-container img {
width: 100%;
}
.post-stats {
display: flex;
height: 34px;

View File

@ -274,6 +274,8 @@
text-align: center
overflow-y: auto
background: black
img
width: 100%
.post-stats
display: flex

View File

@ -1080,6 +1080,10 @@ samp {
font-size: small;
}
.preview-container img {
width: 100%;
}
.post-stats {
display: flex;
height: 34px;