diff options
| author | 2025-08-30 21:32:50 +0200 | |
|---|---|---|
| committer | 2025-08-30 21:32:50 +0200 | |
| commit | 585875cda7e3e261062a9b4f9d836bd8671b838e (patch) | |
| tree | 0c069b4579aedcc37b26afdb1687f4eb95da312d /app | |
| parent | c55e2d317fde3f8f5ef16e41f6377e943e50c788 (diff) | |
Global view: use generic CSS class to open panel (#7868)
I found this todo and just did it. 😆
Changes proposed in this pull request:
- use `open-class` instead of `.box a`
How to test the feature manually:
1. go to global view
2. click on a box title link: it will open the whole category in the panel
3. click on a feed name: it will open the feed articles in the panel
4. nothing will be different for the user as before
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/index/global.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml index 4be568fd0..a5af83412 100644 --- a/app/views/index/global.phtml +++ b/app/views/index/global.phtml @@ -58,7 +58,7 @@ $unreadArticles += $cat->nbNotRead(); ?> <div class="box category" data-unread="<?= $cat->nbNotRead() ?>"> - <div class="box-title"><a class="title" data-unread="<?= format_number($cat->nbNotRead()) ?>" + <div class="box-title"><a class="title open-panel" data-unread="<?= format_number($cat->nbNotRead()) ?>" href="<?= Minz_Url::display($url_base) ?>"><h2><?= $cat->name() ?></h2></a></div> <ul class="box-content scrollbar-thin"> @@ -86,7 +86,7 @@ <li id="f_<?= $feed->id() ?>" class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $error_title, $empty_title ?>" data-unread="<?= $feed->nbNotRead() ?>" data-priority="<?= $feed->priority() ?>"> <?php if (FreshRSS_Context::userConf()->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?> - <a class="item-title" data-unread="<?= format_number($feed->nbNotRead()) ?>" href="<?= Minz_Url::display($url_base) ?>"><?= $feed->name() ?></a> + <a class="item-title open-panel" data-unread="<?= format_number($feed->nbNotRead()) ?>" href="<?= Minz_Url::display($url_base) ?>"><?= $feed->name() ?></a> </li> <?php } ?> </ul> |
