hplush / slowreader

Web app to combine feeds from social networks and RSS and to help read more meaningful and deep content
https://dev.slowreader.app
GNU Affero General Public License v3.0
153 stars 37 forks source link

Do not open first candidate link on mobile #198

Closed ai closed 3 months ago

ai commented 4 months ago

Right now on mobile feed add UI looks weird. After entering URL you need to click on already pressed first candidate.

It happens because on desktop it is cool to open first candidate automatically, but on mobile not.

The idea:

  1. Add isMobile to environment
  2. Define isMobile in web environment to use media queries (the same as we use for 1 step per page mode)
  3. Use env.isMobile in core/preview.ts and do not open candidate automatically on mobile
  4. Add tests
  5. Think about cleaning from some from https://github.com/hplush/slowreader/pull/186 like toggleToSecondStep argument
ilyatitovich commented 4 months ago

I want to try to solve this task