Browse Source

gocomics: remove width attribute to fix improper scaling of images

Andrew Dolgov 1 year ago
parent
commit
e038374608
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/af_comics/init.php

+ 2 - 0
plugins/af_comics/init.php

@@ -123,6 +123,8 @@ class Af_Comics extends Plugin {
 					$node = $xpath->query('//picture[contains(@class, "item-comic-image")]/img')->item(0);
 
 					if ($node) {
+					    $node->removeAttribute("width");
+
 						$tpl->setVariable('ARTICLE_ID', $article_link, true);
 						$tpl->setVariable('ARTICLE_LINK', $article_link, true);
 						$tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);