Add classes to train detail messages

This commit is contained in:
Fred Boniface 2023-07-07 22:05:52 +01:00
parent 5a6fe0f3f5
commit 8a7c78219f
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
import { onMount } from 'svelte';
import Loading from '$lib/navigation/loading.svelte';
import OverlayIsland from '$lib/islands/overlay-island.svelte';
import AlertBar from './alert-bar.svelte';
import AlertBar from '$lib/ldb/nrcc/alert-bar.svelte';
let requestedStation;
$: requestedStation = station;

View File

@ -2,7 +2,7 @@
export let station = '';
export let title = 'Loading...';
import { onMount } from 'svelte';
import AlertBar from '../alert-bar.svelte';
import AlertBar from '$lib/ldb/nrcc/alert-bar.svelte';
import ServiceRow from './service-row.svelte';
import StaffTrainDetail from '$lib/ldb/staff/train-detail.svelte';
import Reason from '$lib/raw-fetchers/reason.svelte';

View File

@ -111,12 +111,12 @@
</p>
<table id="detailTable">
{#if train.GetServiceDetailsResult.delayReason}
<tr><td colspan="7">
<tr><td colspan="7" class="late">
<Reason type="delay" code={train.GetServiceDetailsResult.delayReason} />
</td></tr>
{/if}
{#if train.GetServiceDetailsResult.cancelReason}
<tr><td colspan="7">
<tr><td colspan="7" class="canc">
<Reason type="cancel" code={train.GetServiceDetailsResult.cancelReason} />
</td></tr>
{/if}