Repository navigation
fix(themes): replace #load_more loading-state GIF with a CSS spinner - #8804
Conversation
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.
27ffb9f to
3f0421f
Compare
|
Nice, good idea. Let me test it a bit before merging |
|
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. |
|
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. |
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.
…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.
…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]>
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 [#​8818](FreshRSS/FreshRSS#8818), [#​8837](FreshRSS/FreshRSS#8837) - New CLI for automatic periodic SQLite export with retention [#​8819](FreshRSS/FreshRSS#8819) - More feed info: last received date, publication date [#​8799](FreshRSS/FreshRSS#8799) - Bug fixing - Fix cookies with some browsers [#​8867](FreshRSS/FreshRSS#8867) - Fix search in shared user queries with empty results [#​8863](FreshRSS/FreshRSS#8863) - Fix XML errors with loading invalid OPML in `lib_opml` library [#​8652](FreshRSS/FreshRSS#8652), [#​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 [#​8832](FreshRSS/FreshRSS#8832) - Fix click mark as read [#​8817](FreshRSS/FreshRSS#8817) - UI - Improve browser compatibility to keep mobile navigation at the bottom [#​8833](FreshRSS/FreshRSS#8833) - Improve support of older/simpler Web browsers/engines such as SeaMonkey [#​8810](FreshRSS/FreshRSS#8810), [#​8811](FreshRSS/FreshRSS#8811), [#​8813](FreshRSS/FreshRSS#8813), - Improve *Swage* theme [#​8842](FreshRSS/FreshRSS#8842) - Rename *Nord theme* to *Nord* [#​8805](FreshRSS/FreshRSS#8805) - Replace GIF spinner by CSS spinner [#​8804](FreshRSS/FreshRSS#8804), [#​8812](FreshRSS/FreshRSS#8812) - Various UI and style improvements: [#​8800](FreshRSS/FreshRSS#8800), [#​8816](FreshRSS/FreshRSS#8816), - I18n - Improve Brazilian Portuguese [#​8846](FreshRSS/FreshRSS#8846) - Improve Dutch [#​8868](FreshRSS/FreshRSS#8868) - Improve German [#​8840](FreshRSS/FreshRSS#8840) - Improve Polish [#​8854](FreshRSS/FreshRSS#8854) - Improve Russian [#​8861](FreshRSS/FreshRSS#8861) - Improve Traditional Chinese [#​8849](FreshRSS/FreshRSS#8849) - Misc. - Update dev dependencies [#​8858](FreshRSS/FreshRSS#8858), [#​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
In its
.loadingstate, the "Load more" button keeps its.btnframe 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:
currentColorfrom the button, so it reads correctly on every theme,prefers-reduced-motion,The per-theme
#load_more.loadingoverrides become redundant and are removed.loader.gifis still used by a few other rules in base-theme, so the asset stays.Screenshots
Reproduction
Notes
npm run rtlcss.loader.gifcopies (Nord/loader.gif,Dark/loader.gif, etc.) have never been referenced: CSS relative URLs in--frss-loading-imageresolve againstbase-theme/frss.cssregardless of active theme. They were already orphaned before this change; cleanup of those copies is a separate change.loader.gifconsumers; after that the asset is fully removable.