From 6f5e0b8164e468e97b4a4f1bc3a8a15de8f390bc Mon Sep 17 00:00:00 2001 From: Amandus Date: Wed, 24 May 2023 16:50:37 +0200 Subject: [PATCH] feat: remove distance and duration text from route popup as the value and unit is enough to infer what it describes, the localized strings for distance and duration are removed also - move duration above distance - make duration bold --- .../map-view/components/ors-l-polyline/ors-l-polyline.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fragments/map-view/components/ors-l-polyline/ors-l-polyline.js b/src/fragments/map-view/components/ors-l-polyline/ors-l-polyline.js index b4c1a78b..f517d293 100755 --- a/src/fragments/map-view/components/ors-l-polyline/ors-l-polyline.js +++ b/src/fragments/map-view/components/ors-l-polyline/ors-l-polyline.js @@ -191,10 +191,11 @@ export default { if (this.route.summary) { const summaryCopy = Object.assign({}, this.route.summary) const humanizedData = GeoUtils.getHumanizedTimeAndDistance(summaryCopy, this.$t('global.units')) - let tooltipInnerContent = `${this.$t('global.distance')}: ${humanizedData.distance}` + let tooltipInnerContent = '' if (humanizedData.duration) { - tooltipInnerContent += `
${this.$t('global.duration')}: ${humanizedData.duration}` + tooltipInnerContent += `${humanizedData.duration}
` } + tooltipInnerContent += `${humanizedData.distance}` let tooltipIcon = this.tooltipIcon if (store.getters.mapSettings.skipAllSegments) { tooltipIcon = 'arrow_forward'