aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-02-04 16:32:02 +0100
committerGravatar GitHub <noreply@github.com> 2022-02-04 16:32:02 +0100
commit3938492b8a01967ca72c9d877f499ac8069bb701 (patch)
tree32521de940c7c9576fab8b5b9f4f94200204f44b
parentf8cad8c9595177239f557649306e38d1a540f47c (diff)
Normal view: improve feed filter link (#4006)
* padding+greyscal favicon while hovering+underline * improve underline + improve mouse title * fixed RTL * CSS for more places of feed filter * add title in content feed filter
-rw-r--r--app/views/helpers/index/normal/entry_header.phtml7
-rw-r--r--app/views/index/normal.phtml2
-rw-r--r--p/themes/base-theme/template.css7
-rw-r--r--p/themes/base-theme/template.rtl.css7
4 files changed, 17 insertions, 6 deletions
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml
index 79e6e4215..6968bae85 100644
--- a/app/views/helpers/index/normal/entry_header.phtml
+++ b/app/views/helpers/index/normal/entry_header.phtml
@@ -31,9 +31,10 @@
?></li><?php
}
}
- ?><li class="item website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>" title="<?= _t('gen.action.filter') ?>">
- <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?>
- <span><?= $this->feed->name() ?></span></a>
+ ?><li class="item website">
+ <a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>" title="<?= _t('gen.action.filter') ?>: <?= $this->feed->name() ?>">
+ <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?><span><?= $this->feed->name() ?></span>
+ </a>
</li>
<?php
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index eb388fad3..3909083e9 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -74,7 +74,7 @@ $today = @strtotime('today');
<div class="content <?= $content_width ?>">
<h1 class="title"><a target="_blank" rel="noreferrer" class="go_website" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a></h1>
<div class="subtitle">
- <div class="website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>">
+ <div class="website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>" title="<?= _t('gen.action.filter') ?>: <?= $this->feed->name() ?>">
<?php if (FreshRSS_Context::$user_conf->show_favicons): ?>
<img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" />
<?php endif; ?>
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css
index 9884fdcbd..c6008e1bc 100644
--- a/p/themes/base-theme/template.css
+++ b/p/themes/base-theme/template.css
@@ -764,6 +764,12 @@ input[type="search"] {
.flux .item.website {
width: 200px;
+ padding-right: 10px;
+}
+
+.website a:hover .favicon,
+a.website:hover .favicon {
+ filter: grayscale(100%);
}
.flux.not_read .item.title,
@@ -855,7 +861,6 @@ input[type="search"] {
.flux .item > a {
display: block;
- text-decoration: none;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.css
index 07cc25e83..a8a817a71 100644
--- a/p/themes/base-theme/template.rtl.css
+++ b/p/themes/base-theme/template.rtl.css
@@ -764,6 +764,12 @@ input[type="search"] {
.flux .item.website {
width: 200px;
+ padding-left: 10px;
+}
+
+.website a:hover .favicon,
+a.website:hover .favicon {
+ filter: grayscale(100%);
}
.flux.not_read .item.title,
@@ -855,7 +861,6 @@ input[type="search"] {
.flux .item > a {
display: block;
- text-decoration: none;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;