Commit graph

13 commits

Author SHA1 Message Date
Simon Legner
76f31aeb2b refact: use shorthand method and property syntax 2024-10-19 13:44:15 +02:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Norbert Renner
90697ca38f Fix error when remembered tab does not exist
Caused by renaming `tab_statistics` to `tab_analysis`.
2020-07-14 10:22:00 +02:00
Henrik Fehlauer
e3a9f6206f Switch to next tab with Shift+T shortcut even if tab is currently closed
Often users can remember what the recently opened tab was, so we can
switch to and open the next tab immediately, saving one keypress. There
is a dedicated shortcut (T) for only opening a tab, after all.

While the previous behavior for Shift+T (open tab without switching to
next if currently closed) was by intention, user testing found that the
new approach might be more desirable.
2020-06-20 18:00:00 +00:00
Henrik Fehlauer
844a9038ee Add shortcuts to toggle sidebar and switch tabs
The 'T' key will show/hide the most recent sidebar tab.

Pressing 'Shift+T' will switch to the next sidebar tab, possibly
wrapping around to the first tab.

If the Itinerary tab is hidden, it will be skipped.
2020-06-13 18:00:00 +00:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
54dfa93624 Focus map after sidebar close (#114)
to be consistent with Leaflet Controls and EasyButton behaviour; 
removes focus outline in Firefox from tab that would else remain there
2018-07-25 22:03:23 +02:00
Norbert Renner
1c9cef910b Sidebar closed by default, avoid full-screen on mobile (#112) 2018-04-09 18:50:53 +02:00
Norbert Renner
093db8bfe2 Add sidebar expand button, refresh CodeMirror on expand (scrollbar) 2018-03-19 19:27:10 +01:00
Norbert Renner
ce279fd464 Adapt transit demo support to new sidebar 2018-03-15 14:59:53 +01:00
Norbert Renner
3acd1171b1 Switch to customized leaflet-sidebar-v2 (WIP)
Based on leaflet-sidebar-v2 fork of sidebar-v2:
- Simpler because Leaflet-only
- autopan option
- seems more active with two contributers

Customization for brouter-web in own fork (WIP):
- hidden bar when collapsed
- flat design to match header/footer
- flexbox layout beside map instead of media breakpoints
2018-03-08 11:47:44 +01:00
Norbert Renner
443ca9c03e Replace sidebar with sidebar-v2, restore old flexbox tabs (#90) (WIP) 2018-03-08 11:47:44 +01:00