From 9c85a014dab2aee74c764e94e4ab7ad25acae937 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Wed, 4 Sep 2024 19:34:28 +0200 Subject: [PATCH] clarify elevation vs elevation gain/loss --- .../src/lib/components/GPXStatistics.svelte | 150 +++++++++--------- .../src/lib/components/toolbar/Toolbar.svelte | 114 ++++++------- website/src/locales/en.json | 2 +- 3 files changed, 136 insertions(+), 130 deletions(-) diff --git a/website/src/lib/components/GPXStatistics.svelte b/website/src/lib/components/GPXStatistics.svelte index cfb6c480..0db2142d 100644 --- a/website/src/lib/components/GPXStatistics.svelte +++ b/website/src/lib/components/GPXStatistics.svelte @@ -1,84 +1,90 @@ - - - - - - - {$_('quantities.distance')} - - - - - - - - - {$_('quantities.elevation')} - - {#if panelSize > 120 || orientation === 'horizontal'} - - - - - / - - - {$velocityUnits === 'speed' ? $_('quantities.speed') : $_('quantities.pace')} ({$_( - 'quantities.moving' - )} / {$_('quantities.total')}) - - {/if} - {#if panelSize > 160 || orientation === 'horizontal'} - - - - - / - - - {$_('quantities.time')} ({$_('quantities.moving')} / {$_('quantities.total')}) - - {/if} - + + + + + + + {$_('quantities.distance')} + + + + + + + + + {$_('quantities.elevation_gain_loss')} + + {#if panelSize > 120 || orientation === 'horizontal'} + + + + + / + + + {$velocityUnits === 'speed' ? $_('quantities.speed') : $_('quantities.pace')} ({$_( + 'quantities.moving' + )} / {$_('quantities.total')}) + + {/if} + {#if panelSize > 160 || orientation === 'horizontal'} + + + + + / + + + {$_('quantities.time')} ({$_('quantities.moving')} / {$_( + 'quantities.total' + )}) + + {/if} + diff --git a/website/src/lib/components/toolbar/Toolbar.svelte b/website/src/lib/components/toolbar/Toolbar.svelte index 6674b30c..0dde38f2 100644 --- a/website/src/lib/components/toolbar/Toolbar.svelte +++ b/website/src/lib/components/toolbar/Toolbar.svelte @@ -1,63 +1,63 @@
-
- - - {$_('toolbar.routing.tooltip')} - - - - {$_('toolbar.waypoint.tooltip')} - - - - {$_('toolbar.scissors.tooltip')} - - - - {$_('toolbar.time.tooltip')} - - - - {$_('toolbar.merge.tooltip')} - - - - {$_('toolbar.extract.tooltip')} - - - - {$_('toolbar.elevation.tooltip')} - - - - {$_('toolbar.reduce.tooltip')} - - - - {$_('toolbar.clean.tooltip')} - -
- +
+ + + {$_('toolbar.routing.tooltip')} + + + + {$_('toolbar.waypoint.tooltip')} + + + + {$_('toolbar.scissors.tooltip')} + + + + {$_('toolbar.time.tooltip')} + + + + {$_('toolbar.merge.tooltip')} + + + + {$_('toolbar.extract.tooltip')} + + + + {$_('toolbar.elevation.button')} + + + + {$_('toolbar.reduce.tooltip')} + + + + {$_('toolbar.clean.tooltip')} + +
+
diff --git a/website/src/locales/en.json b/website/src/locales/en.json index 76a05848..f2688919 100644 --- a/website/src/locales/en.json +++ b/website/src/locales/en.json @@ -185,7 +185,6 @@ "help_invalid_selection": "Your selection must contain items with multiple traces to extract them." }, "elevation": { - "tooltip": "Request elevation data", "button": "Request elevation data", "help": "Requesting elevation data will erase the existing elevation data, if any, and replace it with data from Mapbox.", "help_no_selection": "Select a file item to request elevation data." @@ -356,6 +355,7 @@ "quantities": { "distance": "Distance", "elevation": "Elevation", + "elevation_gain_loss": "Elevation gain and loss", "temperature": "Temperature", "speed": "Speed", "pace": "Pace",