Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: Mouse title on empty feeds #4617

Merged
merged 9 commits into from
Sep 18, 2022

Conversation

math-GH
Copy link
Contributor

@math-GH math-GH commented Sep 15, 2022

before:
empty feeds are marked with orange font color.

after:
The mouse gives the information
grafik

grafik

grafik

Changes proposed in this pull request:

  • phtml

How to test the feature manually:

  1. have a feed that is empty
  2. hover the mouse over the feed title

Pull request checklist:

  • clear commit messages
  • code manually tested

@math-GH math-GH added the UI 🎨 User Interfaces label Sep 15, 2022
@@ -46,7 +46,8 @@
$url_base['params']['get'] = 'f_' . $feed->id();
?>
<li id="f_<?= $feed->id() ?>" class="item feed<?= $error, $empty, $feed->mute() ? ' mute' : '' ?>"
data-unread="<?= $feed->nbNotRead() ?>" data-priority="<?= $feed->priority() ?>">
data-unread="<?= $feed->nbNotRead() ?>" data-priority="<?= $feed->priority() ?>"
title="<?= strlen($error) > 0 ? _t('sub.feed.error') : ''?> <?= strlen($empty) > 0 ? _t('sub.feed.empty') : '' ?>">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think $error === '' might be slightly faster than strlen() and it makes a bit more sense to me

app/views/stats/idle.phtml Outdated Show resolved Hide resolved
@Alkarex Alkarex added this to the 1.21.0 milestone Sep 18, 2022
math-GH and others added 3 commits September 18, 2022 15:45
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
@Alkarex Alkarex merged commit 6bed64f into FreshRSS:edge Sep 18, 2022
@math-GH math-GH deleted the mouse-title-empty-feed branch September 19, 2022 16:37
@Alkarex Alkarex modified the milestones: 1.21.0, 1.20.1 Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI 🎨 User Interfaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants