From 8676a62f1e898aaa539ea17951e6776777ef2799 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 11 Jul 2023 22:59:41 +0100 Subject: [PATCH] Margin fixes --- src/lib/ldb/staff/staff-ldb.svelte | 15 +++++++-------- src/lib/ldb/staff/table/table-generator.svelte | 12 ++++++++---- src/lib/ldb/staff/train-detail.svelte | 3 +-- src/lib/train/train-detail.svelte | 4 ++-- src/routes/more/+page.svelte | 8 ++++---- src/routes/more/about/+page.svelte | 4 ++++ src/routes/more/corpus/+page.svelte | 3 +++ src/routes/more/data/+page.svelte | 3 +++ src/routes/more/reasons/+page.svelte | 1 + src/routes/more/reg/+page.svelte | 3 +++ src/routes/more/reg/submit/+page.svelte | 6 ++++++ src/routes/more/report/+page.svelte | 4 ++++ src/routes/more/statistics/+page.svelte | 2 ++ src/routes/pis/+page.svelte | 4 ++++ src/routes/train/+page.svelte | 4 +++- 15 files changed, 55 insertions(+), 21 deletions(-) diff --git a/src/lib/ldb/staff/staff-ldb.svelte b/src/lib/ldb/staff/staff-ldb.svelte index b54ae9a..05d17fc 100644 --- a/src/lib/ldb/staff/staff-ldb.svelte +++ b/src/lib/ldb/staff/staff-ldb.svelte @@ -20,11 +20,11 @@ /** * @type {string | any[]} */ - let busServices = []; + let busServices = []; /** * @type {string | any[]} */ - let ferryServices = []; + let ferryServices = []; let dataAge = new Date(0); let isLoading = true; let isErr = false; @@ -138,7 +138,7 @@ return processedMessages; } - function showDetail(rid='', uid='', tid='') { + function showDetail(rid = '', uid = '', tid = '') { detail = { rid: rid, uid: uid, @@ -184,15 +184,14 @@

There are no scheduled train services in the next two hours

{/if} {#if busServices && busServices.length} - - -
+ +
Bus Services {/if} {#if ferryServices && ferryServices.length} - -
+ +
Ferry Services {/if} diff --git a/src/lib/ldb/staff/table/table-generator.svelte b/src/lib/ldb/staff/table/table-generator.svelte index e940248..2937562 100644 --- a/src/lib/ldb/staff/table/table-generator.svelte +++ b/src/lib/ldb/staff/table/table-generator.svelte @@ -145,9 +145,9 @@ }; } - function detail(event,rid,uid,tid) { + function detail(event, rid, uid, tid) { const target = event.target; - click(rid,uid,tid) + click(rid, uid, tid); } @@ -172,7 +172,11 @@ {#await generateServiceData(service)} Loading Service Data... {:then serviceData} - detail(event, service.rid, service.uid, service.trainid)} on:keypress={(event) => detail(event, service.rid, service.uid, service.trainid)}> + detail(event, service.rid, service.uid, service.trainid)} + on:keypress={(event) => detail(event, service.rid, service.uid, service.trainid)} + > {service.trainid} {serviceData.from} {serviceData.to} @@ -196,7 +200,7 @@ {/if} {#if service.cancelReason} -
+
{/if} diff --git a/src/lib/ldb/staff/train-detail.svelte b/src/lib/ldb/staff/train-detail.svelte index 0f54e7b..1b41e7b 100644 --- a/src/lib/ldb/staff/train-detail.svelte +++ b/src/lib/ldb/staff/train-detail.svelte @@ -198,9 +198,8 @@ font-size: 14px; } #detailTable { - margin-top: 10px; - margin:auto; + margin: auto; color: white; } .tableLocation { diff --git a/src/lib/train/train-detail.svelte b/src/lib/train/train-detail.svelte index fe70835..80a2b5e 100644 --- a/src/lib/train/train-detail.svelte +++ b/src/lib/train/train-detail.svelte @@ -13,8 +13,8 @@
{service.operator || 'GW'}: {service.stops[0]['publicDeparture'] || service.stops[0]['wttDeparture']} - {service.stops[0]['tiploc']} to {service.stops[service['stops'].length - 1]['tiploc']}{service?.operator || ''}: {service?.stops[0]['publicDeparture'] || service?.stops[0]['wttDeparture']} + {service?.stops[0]['tiploc']} to {service?.stops[service['stops'].length - 1]['tiploc']} V
diff --git a/src/routes/more/+page.svelte b/src/routes/more/+page.svelte index fffcbb3..90d370c 100644 --- a/src/routes/more/+page.svelte +++ b/src/routes/more/+page.svelte @@ -6,14 +6,14 @@ const links = [ { title: 'Your Data', path: '/more/data' }, { title: 'Registration', path: '/more/reg' }, + { title: 'Settings', path: '/more/settings' }, + { title: 'Report Issue', path: '/more/report' }, + { title: 'About', path: '/more/about' }, { title: 'Location Reference Code Lookup', path: '/more/corpus' }, { title: 'Reason Code Lookup', path: '/more/reasons' }, { title: 'Privacy Policy', path: '/more/privacy' }, { title: 'Component Versions', path: '/more/versions' }, - { title: 'Statictics', path: '/more/statistics' }, - { title: 'Settings', path: '/more/settings' }, - { title: 'Report Issue', path: '/more/report' }, - { title: 'About', path: '/more/about' } + { title: 'Statistics', path: '/more/statistics' } ]; diff --git a/src/routes/more/about/+page.svelte b/src/routes/more/about/+page.svelte index 7fabd5e..adb6e0c 100644 --- a/src/routes/more/about/+page.svelte +++ b/src/routes/more/about/+page.svelte @@ -20,6 +20,10 @@