A free, self-hostable news aggregator…
fix: dyn. OPML icon (#4810)
maThca6c9345b293
diff --git a/app/Models/Themes.php b/app/Models/Themes.phpindex f84b9b800..d652ada5b 100644--- a/app/Models/Themes.php+++ b/app/Models/Themes.php@@ -144,9 +144,9 @@ class FreshRSS_Themes extends Minz_Model {}if ($type == self::ICON_DEFAULT) {- if ((FreshRSS_Context::$user_conf && FreshRSS_Context::$user_conf->icons_as_emojis) ||+ if ((FreshRSS_Context::$user_conf && FreshRSS_Context::$user_conf->icons_as_emojis)// default to emoji alternate for some icons- in_array($name, [ 'opml-dyn' ])) {+ ) {$type = self::ICON_EMOJI;} else {$type = self::ICON_IMG;diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtmlindex 76b6279b7..7ee7a3188 100644--- a/app/views/subscription/index.phtml+++ b/app/views/subscription/index.phtml@@ -35,8 +35,7 @@<div class="box"><div class="box-title"><a class="configure open-slider" href="<?= _url('subscription', 'category', 'id', $cat->id()) ?>" data-cat-position="<?= $cat->attributes('position') ?>"><?= _i('configure') ?></a>- <h2><?= $cat->name() ?></h2>- <?php if ($cat->kind() == FreshRSS_Category::KIND_DYNAMIC_OPML) { echo _i('opml-dyn'); } ?>+ <h2><?= $cat->name() ?><?php if ($cat->kind() == FreshRSS_Category::KIND_DYNAMIC_OPML) { echo " " . _i('opml-dyn'); } ?></h2></div><ul class="box-content drop-zone scrollbar-thin" dropzone="move" data-cat-id="<?= $cat->id() ?>"><?phpdiff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.cssindex 6538afefa..e0ef320e1 100644--- a/p/themes/base-theme/frss.css+++ b/p/themes/base-theme/frss.css@@ -98,6 +98,12 @@ h2 {line-height: 1.5;}+h2 .icon,+legend .icon {+ height: 0.8em;+ vertical-align: baseline;+}+h3 {margin: 0.5rem 0 0.25rem;font-size: 1.2rem;diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.cssindex f479fbd3c..1755291bd 100644--- a/p/themes/base-theme/frss.rtl.css+++ b/p/themes/base-theme/frss.rtl.css@@ -98,6 +98,12 @@ h2 {line-height: 1.5;}+h2 .icon,+legend .icon {+ height: 0.8em;+ vertical-align: baseline;+}+h3 {margin: 0.5rem 0 0.25rem;font-size: 1.2rem;