From b2169eb968f87811380e85b71b0bef662ee6e1cb Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Thu, 16 Nov 2023 19:43:10 +0100 Subject: [PATCH] Fix line elevation plot --- .../src/lib/components/ui/elevation-stats.vue | 39 +++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/frontend/src/lib/components/ui/elevation-stats.vue b/frontend/src/lib/components/ui/elevation-stats.vue index bc5d7812..abbba5b6 100644 --- a/frontend/src/lib/components/ui/elevation-stats.vue +++ b/frontend/src/lib/components/ui/elevation-stats.vue @@ -12,7 +12,7 @@ route: LineWithTrackPoints | RouteWithTrackPoints; }>(); - const statsButtonRef = ref(); + const statsButtonContainerRef = ref(); const showStatsPopover = ref(false); const statsArr = computed(() => { @@ -27,15 +27,19 @@ {{route.ascent}} m / {{route.descent}} m - + + + + .fm-elevation-stats { - display: inline-flex; - align-items: center; + &, & > span { + display: inline-flex; + align-items: center; + } button { margin-left: 0.5rem; @@ -67,4 +73,15 @@ line-height: 1; } } + + .fm-elevation-stats-popover { + max-width: none; + + dl { + margin: 0; + display: grid; + grid-template-columns: auto 1fr; + white-space: nowrap; + } + } \ No newline at end of file