diff --git a/website/src/lib/components/ElevationProfile.svelte b/website/src/lib/components/ElevationProfile.svelte index 06f19bdd..8c5efa05 100644 --- a/website/src/lib/components/ElevationProfile.svelte +++ b/website/src/lib/components/ElevationProfile.svelte @@ -79,7 +79,8 @@ callback: function (value: number) { return `${value.toFixed(1).replace(/\.0+$/, '')} ${getDistanceUnits()}`; }, - align: 'inner' + align: 'inner', + maxRotation: 0 } }, y: { @@ -489,6 +490,8 @@ overlay.width = canvas.width / window.devicePixelRatio; overlay.height = canvas.height / window.devicePixelRatio; + overlay.style.width = `${canvas.width}px`; + overlay.style.height = `${canvas.height}px`; if ($slicedGPXStatistics) { let startIndex = $slicedGPXStatistics[1]; @@ -512,7 +515,7 @@ startPixel, chart.chartArea.top, endPixel - startPixel, - chart.chartArea.bottom - chart.chartArea.top + chart.chartArea.height ); } } else if (overlay) { @@ -532,9 +535,9 @@ }); -
+
- + {#if showControls}
@@ -543,9 +546,9 @@ label={$_('chart.settings')} builders={[builder]} variant="outline" - class="p-1 h-7 opacity-70 hover:opacity-100 transition-opacity duration-300 hover:bg-background" + class="w-7 h-7 p-0 flex justify-center opacity-70 hover:opacity-100 transition-opacity duration-300 hover:bg-background" > - + diff --git a/website/src/lib/components/GPXStatistics.svelte b/website/src/lib/components/GPXStatistics.svelte index 8804fb2f..c8a458ad 100644 --- a/website/src/lib/components/GPXStatistics.svelte +++ b/website/src/lib/components/GPXStatistics.svelte @@ -28,7 +28,7 @@ - + - + - + @@ -58,7 +58,7 @@ )} / {$_('quantities.total')})" > - + / @@ -71,7 +71,7 @@ label="{$_('quantities.time')} ({$_('quantities.moving')} / {$_('quantities.total')})" > - + / diff --git a/website/src/lib/components/embedding/Embedding.svelte b/website/src/lib/components/embedding/Embedding.svelte index fe3ee594..afa1c091 100644 --- a/website/src/lib/components/embedding/Embedding.svelte +++ b/website/src/lib/components/embedding/Embedding.svelte @@ -260,9 +260,7 @@ options.elevation.power ? 'power' : null ].filter((dataset) => dataset !== null)} elevationFill={options.elevation.fill} - panelSize={options.elevation.height} showControls={options.elevation.controls} - class="py-2" /> {/if}
diff --git a/website/src/lib/components/embedding/EmbeddingPlayground.svelte b/website/src/lib/components/embedding/EmbeddingPlayground.svelte index 73058a77..6fb34f38 100644 --- a/website/src/lib/components/embedding/EmbeddingPlayground.svelte +++ b/website/src/lib/components/embedding/EmbeddingPlayground.svelte @@ -165,35 +165,35 @@
diff --git a/website/src/lib/docs/en/files-and-stats.mdx b/website/src/lib/docs/en/files-and-stats.mdx index a94db71c..3aef32c9 100644 --- a/website/src/lib/docs/en/files-and-stats.mdx +++ b/website/src/lib/docs/en/files-and-stats.mdx @@ -73,7 +73,7 @@ You can also use the mouse wheel to zoom in and out on the elevation profile, an ### Additional data -Using the buttons on the right of the elevation profile, you can optionally color the elevation profile by: +Using the button at the bottom-right of the elevation profile, you can optionally color the elevation profile by: - **slope** information computed from the elevation data, or - **surface** data coming from OpenStreetMap's surface tags. This is only available for files created with **gpx.studio**. diff --git a/website/src/routes/[[language]]/+page.svelte b/website/src/routes/[[language]]/+page.svelte index 658ed1a1..ae966141 100644 --- a/website/src/routes/[[language]]/+page.svelte +++ b/website/src/routes/[[language]]/+page.svelte @@ -175,7 +175,6 @@ {slicedGPXStatistics} additionalDatasets={$additionalDatasets} elevationFill={$elevationFill} - panelSize={200} />
diff --git a/website/src/routes/[[language]]/app/+page.svelte b/website/src/routes/[[language]]/app/+page.svelte index 826aae12..d1d7477d 100644 --- a/website/src/routes/[[language]]/app/+page.svelte +++ b/website/src/routes/[[language]]/app/+page.svelte @@ -92,8 +92,6 @@ {slicedGPXStatistics} bind:additionalDatasets={$additionalDatasets} bind:elevationFill={$elevationFill} - panelSize={$bottomPanelSize} - class="py-2" /> {/if}