Restore positioning of departure times
This commit is contained in:
parent
4fa901dc1b
commit
96886d402e
@ -7,15 +7,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="departure__time">
|
<div class="departure__time">
|
||||||
<fa :icon="['far', 'clock']" v-if="!departure.estimated" title="Czas rozkładowy, nie uwzględniający aktualnej sytuacji komunikacyjnej."/>
|
<fa :icon="['far', 'clock']" v-if="!departure.estimated" title="Czas rozkładowy, nieuwzględniający aktualnej sytuacji komunikacyjnej."/>
|
||||||
<span :class="[ 'departure__scheduled', departure.estimated && departure.scheduled.format('HH:mm') !== departure.estimated.format('HH:mm') && 'departure__scheduled--delayed']">
|
<span class="departure__estimated" v-if="departure.estimated && departure.scheduled.format('HH:mm') !== departure.estimated.format('HH:mm')">{{ departure.estimated.format('HH:mm') }}</span>
|
||||||
{{ departure.scheduled.format('HH:mm') }}
|
|
||||||
</span>
|
|
||||||
<span class="badge" :class="[departure.delay < 0 ? 'badge-danger' : 'badge-warning']"
|
<span class="badge" :class="[departure.delay < 0 ? 'badge-danger' : 'badge-warning']"
|
||||||
v-if="departure.delay < 0 || departure.delay > 30">
|
v-if="departure.delay < 0 || departure.delay > 30">
|
||||||
{{ departure.delay|signed }}s
|
{{ departure.delay|signed }}s
|
||||||
</span>
|
</span>
|
||||||
<span class="departure__estimated" v-if="departure.estimated && departure.scheduled.format('HH:mm') !== departure.estimated.format('HH:mm')">{{ departure.estimated.format('HH:mm') }}</span>
|
<span :class="[ 'departure__scheduled', departure.estimated && departure.scheduled.format('HH:mm') !== departure.estimated.format('HH:mm') && 'departure__scheduled--delayed']">
|
||||||
|
{{ departure.scheduled.format('HH:mm') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="departure__stop">
|
<div class="departure__stop">
|
||||||
|
Loading…
Reference in New Issue
Block a user