mercurymedia / elm-datetime-picker

Single and duration datetime picker components written in Elm 0.19
https://package.elm-lang.org/packages/mercurymedia/elm-datetime-picker/latest/
MIT License
16 stars 6 forks source link

Fix time visibility for whole days #43

Closed mschindlerMM closed 1 year ago

mschindlerMM commented 1 year ago

fixes #42

As the issue states, the time is not visible for whole days (00:00 - 23:59). Which probably made sense before because the display and the time selection were separate. Now, the time is always visible when the time visibility is set to Toggleable or AlwaysVisible. It still shows only dates when it's set to NeverVisible.

Also, when the start and end are on the same day, we now display that as a range as well - which just makes sense to me for a duration picker to always see the start and end even when they are on the same day. Before we only displayed a single date.

image