Skip to content

Commit

Permalink
ui: fix transfer display (remove extra space)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 5, 2024
1 parent 61e841e commit 813b1ee
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ui/src/routes/ConnectionDetail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,13 @@
<div class="border-t w-full h-0"></div>
<div class="text-sm text-muted-foreground text-nowrap px-2">
{#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}
</div>
{/if}
Expand Down

0 comments on commit 813b1ee

Please sign in to comment.