From 813b1eed85b1f91eda6875d8bae5adc234106548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Tue, 5 Nov 2024 18:42:48 +0100 Subject: [PATCH] ui: fix transfer display (remove extra space) --- ui/src/routes/ConnectionDetail.svelte | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui/src/routes/ConnectionDetail.svelte b/ui/src/routes/ConnectionDetail.svelte index 82fc61265..d3859a099 100644 --- a/ui/src/routes/ConnectionDetail.svelte +++ b/ui/src/routes/ConnectionDetail.svelte @@ -80,16 +80,13 @@
{#if pred.from.track} - Ankunft auf Gleis {pred.from.track} + Ankunft auf Gleis {pred.from.track}{pred.duration ? ',' : ''} {/if} - {#if pred.from.track && pred.duration !== 0} - , - {/if} - {#if pred.duration !== 0} + {#if pred.duration} {formatDurationSec(pred.duration)} Fußweg {/if} - {#if pred.distance != 0} - ({Math.round(pred.distance!)} m) + {#if pred.distance} + ({Math.round(pred.distance)} m) {/if}
{/if}