From 11b3b4d6656fd077b65e98b0ba3c2d9826cb0dcb Mon Sep 17 00:00:00 2001 From: twisterarmy Date: Sun, 27 Apr 2025 03:24:31 +0300 Subject: [PATCH] move inline style to the theme implementation --- js/twister_formatpost.js | 2 +- theme_nin/css/style.css | 4 ++++ theme_nin/sass/_postboard.sass | 2 ++ theme_nin_night/css/style.css | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 4f85430..76db014 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -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($('')); + previewContainer.append($('')); } } } diff --git a/theme_nin/css/style.css b/theme_nin/css/style.css index 33cd2d9..e6a269e 100644 --- a/theme_nin/css/style.css +++ b/theme_nin/css/style.css @@ -1065,6 +1065,10 @@ samp { background: black; } +.preview-container img { + width: 100%; +} + .post-stats { display: flex; height: 34px; diff --git a/theme_nin/sass/_postboard.sass b/theme_nin/sass/_postboard.sass index ac9bebb..a67b64c 100755 --- a/theme_nin/sass/_postboard.sass +++ b/theme_nin/sass/_postboard.sass @@ -274,6 +274,8 @@ text-align: center overflow-y: auto background: black + img + width: 100% .post-stats display: flex diff --git a/theme_nin_night/css/style.css b/theme_nin_night/css/style.css index b59d449..8d7dc0b 100644 --- a/theme_nin_night/css/style.css +++ b/theme_nin_night/css/style.css @@ -1080,6 +1080,10 @@ samp { font-size: small; } +.preview-container img { + width: 100%; +} + .post-stats { display: flex; height: 34px;