hovancik / stretchly

The break time reminder app
https://hovancik.net/stretchly
BSD 2-Clause "Simplified" License
4.51k stars 436 forks source link

[Feature request]: Show 0 seconds during break countdown #1426

Open Noracsa2000 opened 7 months ago

Noracsa2000 commented 7 months ago

Version

Existing requests

Advanced Preferences

What operating system are you using?

Windows

Operating System Version

Windows 11 Pro 23H2

Problem description

I have a minor cosmetic issue with the way Stretchly presents the remainig time during breaks >= 2 minutes. In general the break window is beautiful, minimalistic and all animations are smooth. However, when the remaining time is a full minute, not showing the (0) seconds, leads to a visual disruption which is suboptimal. It currently looks like this:

3 minutes 2 seconds remaining 3 minutes 1 seconds remaining 3 minutes remaining 2 minutes 59 seconds remaining 2 minutes 58 seconds remaining

This jumping from a long line to a short line and immediately back to a long line bothers me, as it attracts attention and disturbs the smooth flow of the animation.

Possible solution

A more elegant representation would look like this:

3 minutes 2 seconds remaining 3 minutes 1 seconds remaining 3 minutes 0 seconds remaining 2 minutes 59 seconds remaining 2 minutes 58 seconds remaining

Alternative solutions

I know this is a very minor thing, which can be left the way it is. However, Stretchly is such a beautiful app that I am all the more annoyed by such a suboptimal detail.

Additional information

No response

Code of Conduct

hovancik commented 7 months ago

TBH, not sure if that is nice, but anyway: the library I use does not currently support that (from what I see in the docs.)

I've opened issue there: https://github.com/EvanHahn/HumanizeDuration.js/issues/219