Skip to content

fix(themes): replace #load_more loading-state GIF with a CSS spinner - #8804

Merged
Alkarex merged 4 commits into
FreshRSS:edgefrom
polybjorn:fix/load-more-spinner-dark-themes
May 11, 2026
Merged

Alkarex merged 4 commits into
FreshRSS:edgefrom
polybjorn:fix/load-more-spinner-dark-themes

Conversation

@polybjorn

@polybjorn polybjorn commented May 10, 2026 •

Copy link
Copy Markdown
Contributor

In its .loading state, the "Load more" button keeps its .btn frame on every theme, and on most themes the spinner inside is hard to see or invisible. Nord, Flat, Mapco, Ansum and Swage had per-theme overrides that papered over the spinner symptom with coloured fills instead of fixing the cause.

Replace the GIF with a CSS spinner in base-theme that:

  • inherits currentColor from the button, so it reads correctly on every theme,
  • drops the button frame and background fill in the loading state,
  • respects prefers-reduced-motion,
  • renders crisply at any DPI.

The per-theme #load_more.loading overrides become redundant and are removed. loader.gif is still used by a few other rules in base-theme, so the asset stays.

Screenshots

Before (Nord) Before (Alt-Dark) After (v2)
Untitled Screenshot 2026-05-10 at 22 04 32 Screenshot 2026-05-11 at 11 05 43

Reproduction

  1. Configuration > Reading: turn off "Load more articles at the bottom of the page".
  2. DevTools > Network: set throttling to the slowest preset (e.g. GPRS, ~50 kbps) so the loading state is observable.
  3. Click "Load more" and watch the loading state. The button frame stays visible on every theme; on most themes the spinner inside is also hard to see or invisible.

Notes

  • RTL stylesheets regenerated via npm run rtlcss.
  • Per-theme loader.gif copies (Nord/loader.gif, Dark/loader.gif, etc.) have never been referenced: CSS relative URLs in --frss-loading-image resolve against base-theme/frss.css regardless of active theme. They were already orphaned before this change; cleanup of those copies is a separate change.
  • The same spinner pattern would work for the remaining loader.gif consumers; after that the asset is fully removable.

@polybjorn
polybjorn marked this pull request as ready for review May 10, 2026 19:07
In its `.loading` state, the "Load more" button kept its `.btn` frame and the spinner inside was hard to see or invisible across themes. Replaces the GIF with a base-theme CSS spinner inheriting `currentColor`, drops the button frame, respects `prefers-reduced-motion`, and renders crisply at any DPI. Per-theme `#load_more.loading` overrides in Nord, Flat, Mapco, Ansum and Swage become redundant and are removed; a now-redundant `font-size: 0` rule in `base.css` is also dropped.
@polybjorn
polybjorn force-pushed the fix/load-more-spinner-dark-themes branch from 27ffb9f to 3f0421f Compare May 10, 2026 19:18
@Alkarex Alkarex added this to the 1.30.0 milestone May 10, 2026
@Alkarex Alkarex added the UI 🎨 User Interfaces label May 10, 2026
@Alkarex

Alkarex commented May 10, 2026

Copy link
Copy Markdown
Member

Nice, good idea. Let me test it a bit before merging

@Alkarex

Alkarex commented May 10, 2026

Copy link
Copy Markdown
Member

Please write if already tested with some specific browsers

@polybjorn

polybjorn commented May 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Please write if already tested with some specific browsers

I've tested this on LibreWolf where every theme is now working as intended.

After opening the PR I tested with SeaMonkey where the CSS icons doesn't appear, but the loading function doesn't work at all there - after reloading the page, I get logged out for some reason. Have not troubleshooted the cause for that.. If I can assume changing the icons from .gif to CSS code isn't the reason I'm logged out, this is just as broken as it was before (at least on some themes).

Upon further investigation, there are 4 features that start breaking at various times for Safari/Chrome/Firefox, all around Sep-Jan 2021. There are multiple things I can do to move this floor further away if you want.

If this was to get merged, I was planning on following up by getting rid of the .gifs entirely, so I don't mind spending extra time on this.

@Alkarex

Alkarex commented May 10, 2026

Copy link
Copy Markdown
Member

That sounds good, and yes, fixing compatibility with some browsers would be much welcome (although it is ok not to have all details working on older engines, as long as it looks fine). More compatibility attention should be given to the default theme.

polybjorn added 2 commits May 11, 2026 12:26
Replaces conic-gradient + mask + aspect-ratio (Firefox 83+, Safari 15.4+) with border + rotate, supported in Gecko since Firefox 16 (2012) and Blink/WebKit since 2015. Visual difference: a ring with a rotating gap instead of a tapered arc. currentColor inheritance and prefers-reduced-motion handling are preserved.
rtlcss flips border-right-color to border-left-color for RTL; the manual port of the spinner block missed it. Regenerated via npm run rtlcss.
@polybjorn

polybjorn commented May 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Reworked the spinner with border + rotate instead of conic-gradient + mask + aspect-ratio.

Screenshot 2026-05-11 at 11 05 43

Oldest browser versions still supported: Firefox 16 (2012), SeaMonkey 2.13 (2012), Chrome 43 (2015), Safari 9 (2015), Edge 12 (2015). Below those, @keyframes and animation would need -webkit- fallbacks.

Verified now working in SeaMonkey 2.53.23. Couldn't test feed clicks or page reload there because login itself hits a separate cookie issue.

@Alkarex
Alkarex merged commit 1ff27fe into FreshRSS:edge May 11, 2026
1 check passed
@polybjorn
polybjorn deleted the fix/load-more-spinner-dark-themes branch May 11, 2026 14:36
polybjorn added a commit to polybjorn/FreshRSS that referenced this pull request May 11, 2026
…he CSS spinner

#button-update-loading and the generic .loading class (used by
#first_load) painted loader.gif as a background. Both now use the
#load_more.loading::after border-rotation spinner from FreshRSS#8804. The
unused #slider-content .loader rule is also removed. Drops the
--frss-loading-image variable, all twelve loader.gif files, and
references in the theme contribution docs.
Alkarex pushed a commit that referenced this pull request May 11, 2026
…he CSS spinner (#8812)

#button-update-loading and the generic .loading class (used by
#first_load) painted loader.gif as a background. Both now use the
#load_more.loading::after border-rotation spinner from #8804. The
unused #slider-content .loader rule is also removed. Drops the
--frss-loading-image variable, all twelve loader.gif files, and
references in the theme contribution docs.

Co-authored-by: Bjørn A. Andersen <[email protected]>
@Alkarex Alkarex modified the milestones: 1.30.0, 1.29.1 May 14, 2026
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request May 20, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [freshrss/freshrss](https://freshrss.org/) ([source](https://github.com/FreshRSS/FreshRSS)) | patch | `1.29.0-alpine` → `1.29.1-alpine` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/34) for more information.

---

### Release Notes

<details>
<summary>FreshRSS/FreshRSS (freshrss/freshrss)</summary>

### [`v1.29.1`](https://github.com/FreshRSS/FreshRSS/blob/HEAD/CHANGELOG.md#2026-05-20-FreshRSS-1291)

[Compare Source](FreshRSS/FreshRSS@1.29.0...1.29.1)

- Features
  - Accept `.txt` import of feed URLs in additional to e.g. OPML [#&#8203;8818](FreshRSS/FreshRSS#8818), [#&#8203;8837](FreshRSS/FreshRSS#8837)
  - New CLI for automatic periodic SQLite export with retention [#&#8203;8819](FreshRSS/FreshRSS#8819)
  - More feed info: last received date, publication date [#&#8203;8799](FreshRSS/FreshRSS#8799)
- Bug fixing
  - Fix cookies with some browsers [#&#8203;8867](FreshRSS/FreshRSS#8867)
  - Fix search in shared user queries with empty results [#&#8203;8863](FreshRSS/FreshRSS#8863)
  - Fix XML errors with loading invalid OPML in `lib_opml` library [#&#8203;8652](FreshRSS/FreshRSS#8652), [#&#8203;8853](FreshRSS/FreshRSS#8853),
    [lib\_opml#48](https://framagit.org/marienfressinaud/lib_opml/-/merge_requests/48), [lib\_opml#51](https://framagit.org/marienfressinaud/lib_opml/-/merge_requests/51)
  - Fix ensure maximum number of feeds also with Dynamic OPML [#&#8203;8832](FreshRSS/FreshRSS#8832)
  - Fix click mark as read [#&#8203;8817](FreshRSS/FreshRSS#8817)
- UI
  - Improve browser compatibility to keep mobile navigation at the bottom [#&#8203;8833](FreshRSS/FreshRSS#8833)
  - Improve support of older/simpler Web browsers/engines such as SeaMonkey [#&#8203;8810](FreshRSS/FreshRSS#8810),
    [#&#8203;8811](FreshRSS/FreshRSS#8811), [#&#8203;8813](FreshRSS/FreshRSS#8813),
  - Improve *Swage* theme [#&#8203;8842](FreshRSS/FreshRSS#8842)
  - Rename *Nord theme* to *Nord* [#&#8203;8805](FreshRSS/FreshRSS#8805)
  - Replace GIF spinner by CSS spinner [#&#8203;8804](FreshRSS/FreshRSS#8804), [#&#8203;8812](FreshRSS/FreshRSS#8812)
  - Various UI and style improvements: [#&#8203;8800](FreshRSS/FreshRSS#8800), [#&#8203;8816](FreshRSS/FreshRSS#8816),
- I18n
  - Improve Brazilian Portuguese [#&#8203;8846](FreshRSS/FreshRSS#8846)
  - Improve Dutch [#&#8203;8868](FreshRSS/FreshRSS#8868)
  - Improve German [#&#8203;8840](FreshRSS/FreshRSS#8840)
  - Improve Polish [#&#8203;8854](FreshRSS/FreshRSS#8854)
  - Improve Russian [#&#8203;8861](FreshRSS/FreshRSS#8861)
  - Improve Traditional Chinese [#&#8203;8849](FreshRSS/FreshRSS#8849)
- Misc.
  - Update dev dependencies [#&#8203;8858](FreshRSS/FreshRSS#8858), [#&#8203;8864](FreshRSS/FreshRSS#8864)

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xODIuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE4Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.greyrock.io/greyrock-labs/home-ops/pulls/88
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