Commit graph

22 commits

Author SHA1 Message Date
quaelnix
a35814b8b3
Add seconds display in title attribute of total time (#696) 2023-02-16 18:44:05 +01:00
Norbert Renner
0fc60c1821 Work around iOS 3rd party browser download (#418)
- use FileReader.readAsDataURL (for iOS Chromium)
- add alternative Download from Server for now until proven in Prod and fixed in iOS Firefox (no i18n)
- replace cloud icons as client-side now
2022-05-28 14:27:32 +02:00
Norbert Renner
6a19b53dc0 Add interpolated warning for stats with beeline 2022-04-11 19:24:48 +02:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Norbert Renner
2df1f617c9 Improve hiding elevation chart when empty
Consider additional cases:
- flag got reset when deleting and adding first waypoint
- don't show empty on load, postpone to update
- don't store state when hidden because empty
2020-07-16 10:28:40 +02:00
Gautier P
bbaad4f8b3 Hide stats footer by default and collapse elevation chart if needed 2020-05-25 20:22:49 +02:00
Gautier P
a358aed464 Improve stats footer on mobile #296 2020-05-24 19:50:14 +02:00
Gautier P
52be57f5ba Always display 3 digits for distance title, even when ending with zeros 2020-05-24 19:23:00 +02:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Henrik Fehlauer
632e094fb3 Always show travel time and energy
Always show the entries for travel time and energy in the statistics
bar, so the layout does not suddenly change when starting to draw a route.
2019-07-01 20:46:41 +02:00
Henrik Fehlauer
9bc38fea89 Improve number formatting
Use locale-aware number formatting (i.e. add grouping separators).

Use hours and minutes to format travel time.
2019-05-30 23:52:59 +02:00
Henrik Fehlauer
aeb93e33b6 Polish UI of track statistics bar
Use "x | y" format instead "x (y)"
(The old format was a bit confusing, e.g. the second part of the label
could be mistaken for an "explanation" of the first part, while it
actually is an entirely separate label.)

Repeat unit for every metric.

Use plural for units.

Use "-" everywhere when a metric is not yet available instead of mixing
"-" and "0".

Properly revert to initial "-" when removing route instead of showing
"0".

Show "0" instead of "" when route length cannot be calculated yet.

Slightly change wording ("Energy per 100km").
2019-05-30 23:52:59 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
6d3a7a6b1c Restore 3-digit distance title (see #38) removed with PR #56 2018-01-27 11:31:41 +01:00
Norbert Renner
20959fd287 Refactor duplicate abbr definitions; add kWh abbr 2018-01-27 11:13:30 +01:00
Norbert Renner
102e978581 Merge and adapt PR #95 car-eco/fast + display energy/time 2018-01-25 19:05:46 +01:00
Brenschede
868fcb1100 car-eco/fast + display energy/time 2017-09-25 20:17:06 +02:00
Gautier Pelloux-Prayer
d7e476db82 Updating UI to also fit on mobile devices. Fix #34 2017-01-23 10:47:28 +01:00
Norbert Renner
a54cc31a0f Add mean cost to stats (+ small refactoring), closes #39 2016-06-08 18:19:54 +02:00
Norbert Renner
0bffe0cd7c Add tooltip to display length in meter precision (3 digits). Closes #38 2016-06-08 12:37:54 +02:00
Norbert Renner
726cf4bba6 switch to GeoJSON response format instead of GPX:
- use BRouter track stats
- remove leaflet-gpx plugin
2014-08-22 10:10:07 +02:00
Norbert Renner
4cc16bccd0 initial commit 2014-01-27 18:34:48 +01:00