OpenHistoricalMap / issues

File your issues here, regardless of repo until we get all our repos squared away; we don't want to miss anything.
Creative Commons Zero v1.0 Universal
19 stars 1 forks source link

Time slider is too big on mobile screens #913

Open 1ec5 opened 10 hours ago

1ec5 commented 10 hours ago

We should optimize the time slider UI for mobile screens or get it out of the way.

Problem

The time slider panel takes up too much screen real estate, especially on a typical mobile screen. By default, the panel is expanded, obscuring the entire map except for some tiny slivers at the top and bottom. The user must manually collapse the panel to reveal the map.

The time slider UI obscures all but some tiny slivers of the map.

Worse, both the site navigation panel and what would normally be a sidebar overlap a large portion of the time slider panel, including not only the controls for setting the date range but also the control for collapsing the time slider panel. If a user follows a link to a specific element, the inspector and time slider together will obscure the entire map. To reveal the highlighted element, the user needs to dismiss the inspector, collapse the time slider, and navigate back to the previous browser history item to restore the inspector. This is very unintuitive.

The site navigation panel overlaps the time slider UI, obscuring the controls for collapsing the time slider and setting the date range. The element inspector overlaps the time slider UI, obscuring the controls for collapsing the time slider and setting the date range.

The controls for collapsing the panel and setting the date range are also obscured in landscape orientation. To access the control for collapsing the panel, the user must rotate the phone to portrait orientation. If the phone has screen rotation locked, the user may need to exit the browser and navigate system preferences to disable that setting – just to see the map on our homepage.

The time slider UI bleeds past the navigation bar and the top of the screen, obscuring the controls for collapsing the time slider and setting the date range.

Possible solutions

A quick fix would be to collapse the time slider panel by default as long as the site is showing its mobile layout. To detect this layout, look for the small-nav class on the document body. The downside is that the time slider will be less discoverable when collapsed, since all it does is display the current date.

A more thorough fix for this issue would require a redesign of the time slider UI. Even the desktop viewing experience would benefit from a streamlined time slider. We could reduce redundancy in the slider (#648), narrow the dropdown menus to fit their contents, hide the date range and animation controls in favor of dialog boxes similar to the Change Date dialog box, and replace some text labels with icons (with alt text and tooltips). We shouldn’t however shrink any font or button sizes or reduce spacing between the controls; that would only make them more difficult to manipulate on a small touch screen.