From 71c88b15c6fd426f9a43e071c0fe788ed192155f Mon Sep 17 00:00:00 2001 From: vcoppe Date: Fri, 6 Sep 2024 13:36:36 +0200 Subject: [PATCH] small ui improvements --- .../src/lib/components/GPXStatistics.svelte | 8 +- .../components/toolbar/tools/Elevation.svelte | 3 +- .../lib/components/toolbar/tools/Merge.svelte | 153 +++--- .../components/toolbar/tools/Reduce.svelte | 317 +++++------ .../lib/components/toolbar/tools/Time.svelte | 6 +- .../components/toolbar/tools/Waypoint.svelte | 495 +++++++++--------- 6 files changed, 496 insertions(+), 486 deletions(-) diff --git a/website/src/lib/components/GPXStatistics.svelte b/website/src/lib/components/GPXStatistics.svelte index 0db2142d..69959ac0 100644 --- a/website/src/lib/components/GPXStatistics.svelte +++ b/website/src/lib/components/GPXStatistics.svelte @@ -64,11 +64,11 @@ / - {$velocityUnits === 'speed' ? $_('quantities.speed') : $_('quantities.pace')} ({$_( + + {$velocityUnits === 'speed' ? $_('quantities.speed') : $_('quantities.pace')} ({$_( 'quantities.moving' - )} / {$_('quantities.total')}) + )} / {$_('quantities.total')}) + {/if} {#if panelSize > 160 || orientation === 'horizontal'} diff --git a/website/src/lib/components/toolbar/tools/Elevation.svelte b/website/src/lib/components/toolbar/tools/Elevation.svelte index b77f2478..de365be7 100644 --- a/website/src/lib/components/toolbar/tools/Elevation.svelte +++ b/website/src/lib/components/toolbar/tools/Elevation.svelte @@ -13,6 +13,7 @@
diff --git a/website/src/lib/components/toolbar/tools/Merge.svelte b/website/src/lib/components/toolbar/tools/Merge.svelte index 438d11f1..aae32a47 100644 --- a/website/src/lib/components/toolbar/tools/Merge.svelte +++ b/website/src/lib/components/toolbar/tools/Merge.svelte @@ -1,88 +1,89 @@
- - - - - - - {#if mergeType === MergeType.TRACES && canMergeTraces} - {$_('toolbar.merge.help_merge_traces')} - {:else if mergeType === MergeType.TRACES && !canMergeTraces} - {$_('toolbar.merge.help_cannot_merge_traces')} - {:else if mergeType === MergeType.CONTENTS && canMergeContents} - {$_('toolbar.merge.help_merge_contents')} - {:else if mergeType === MergeType.CONTENTS && !canMergeContents} - {$_('toolbar.merge.help_cannot_merge_contents')} - {/if} - + + + + + + + {#if mergeType === MergeType.TRACES && canMergeTraces} + {$_('toolbar.merge.help_merge_traces')} + {:else if mergeType === MergeType.TRACES && !canMergeTraces} + {$_('toolbar.merge.help_cannot_merge_traces')} + {:else if mergeType === MergeType.CONTENTS && canMergeContents} + {$_('toolbar.merge.help_merge_contents')} + {:else if mergeType === MergeType.CONTENTS && !canMergeContents} + {$_('toolbar.merge.help_cannot_merge_contents')} + {/if} +
diff --git a/website/src/lib/components/toolbar/tools/Reduce.svelte b/website/src/lib/components/toolbar/tools/Reduce.svelte index bfc426eb..cb06f91d 100644 --- a/website/src/lib/components/toolbar/tools/Reduce.svelte +++ b/website/src/lib/components/toolbar/tools/Reduce.svelte @@ -1,174 +1,183 @@
-
- -
- - - +
+ +
+ + + - - {#if validSelection} - {$_('toolbar.reduce.help')} - {:else} - {$_('toolbar.reduce.help_no_selection')} - {/if} - + + {#if validSelection} + {$_('toolbar.reduce.help')} + {:else} + {$_('toolbar.reduce.help_no_selection')} + {/if} +
diff --git a/website/src/lib/components/toolbar/tools/Time.svelte b/website/src/lib/components/toolbar/tools/Time.svelte index 4c1a88c8..509735d8 100644 --- a/website/src/lib/components/toolbar/tools/Time.svelte +++ b/website/src/lib/components/toolbar/tools/Time.svelte @@ -293,11 +293,11 @@
{/if} -
+