mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:05:56 +00:00
gocomics: remove width attribute to fix improper scaling of images
This commit is contained in:
2
plugins/af_comics/init.php
Normal file → Executable file
2
plugins/af_comics/init.php
Normal file → Executable file
@@ -123,6 +123,8 @@ class Af_Comics extends Plugin {
|
|||||||
$node = $xpath->query('//picture[contains(@class, "item-comic-image")]/img')->item(0);
|
$node = $xpath->query('//picture[contains(@class, "item-comic-image")]/img')->item(0);
|
||||||
|
|
||||||
if ($node) {
|
if ($node) {
|
||||||
|
$node->removeAttribute("width");
|
||||||
|
|
||||||
$tpl->setVariable('ARTICLE_ID', $article_link, true);
|
$tpl->setVariable('ARTICLE_ID', $article_link, true);
|
||||||
$tpl->setVariable('ARTICLE_LINK', $article_link, true);
|
$tpl->setVariable('ARTICLE_LINK', $article_link, true);
|
||||||
$tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);
|
$tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user