From ac4e57433e745161ee34153769754375e3873c87 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sun, 16 Aug 2020 20:11:32 +0100 Subject: [PATCH] Making some progress --- src/App.svelte | 2 +- src/components/Header.svelte | 6 ++--- src/components/SettingsInput.svelte | 21 ++++++++++++--- src/components/SettingsListItem.svelte | 2 +- src/components/TimetableList.svelte | 19 +++++++------- src/components/TrainRoute.svelte | 8 +++--- src/components/Twitter.svelte | 13 +++++----- src/components/TwitterSettings.svelte | 2 +- src/pages/Twitter.svelte | 4 +-- src/store/store.js | 36 ++++++++++++++++++++++++++ 10 files changed, 83 insertions(+), 30 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index bd62c0b..f155df8 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -30,7 +30,7 @@ - + {#if searchResults.length > 0} {/if} diff --git a/src/components/SettingsListItem.svelte b/src/components/SettingsListItem.svelte index 499c665..99ea6b5 100644 --- a/src/components/SettingsListItem.svelte +++ b/src/components/SettingsListItem.svelte @@ -37,7 +37,7 @@
{item.startStation.name}
{item.destStation.name}
-
+
diff --git a/src/components/TimetableList.svelte b/src/components/TimetableList.svelte index 48dbecf..ed7df33 100644 --- a/src/components/TimetableList.svelte +++ b/src/components/TimetableList.svelte @@ -60,7 +60,7 @@
    {#each otherDetails.nrMessages as item} -
  • {item.msg} +
  • {item.msg} {#if item.link} {item.linkText} {/if} @@ -75,23 +75,24 @@ {#if list.length > 0} {#each list as item, i (item.serviceIdUrlSafe)} -
    -
    +
    +
    {item.location} - {item.carriageCount} + {item.carriageCount}
    {#if item.via} - {item.via} + + {item.via} {/if}
    -
    {item.time}
    +
    {item.time}
    {#if item.isCancelled} -
    {item.cancel}
    +
    {item.cancel}
    {:else} -
    {item.status}
    -
    {item.platform}
    +
    {item.status}
    +
    {item.platform}
    {/if}
    {/each} diff --git a/src/components/TrainRoute.svelte b/src/components/TrainRoute.svelte index 37480cf..874a7fc 100644 --- a/src/components/TrainRoute.svelte +++ b/src/components/TrainRoute.svelte @@ -97,7 +97,7 @@ align-items: center; padding: 0.7rem 0rem; z-index: 1; - width: 100%; + width: 98%; opacity: 0.9; margin-bottom: 0.4rem; border-bottom-color: #666666; @@ -144,12 +144,12 @@ -
    -
    +
    +
    {startStationName}
    {destStationName}
    -
    +
    {displayTime}
    diff --git a/src/components/Twitter.svelte b/src/components/Twitter.svelte index a5e9ae8..5edcc0b 100644 --- a/src/components/Twitter.svelte +++ b/src/components/Twitter.svelte @@ -32,24 +32,25 @@ .avatar { max-width: 48px; max-height: 48px; + object-fit: scale-down; border-radius: 0.1rem; } {#if tweet} -
    -
    +
    +
    @{tweet.user.screen_name}
    -
    {tweet.user.name}
    -
    @{tweet.user.screen_name}
    +
    {tweet.user.name}
    +
    @{tweet.user.screen_name}
    {#if inReply} -
    +
    Replying to @{tweet.in_reply_to_screen_name}
    {/if} @@ -59,6 +60,6 @@
    {tweet.created_at}
    -
    +
    {/if} diff --git a/src/components/TwitterSettings.svelte b/src/components/TwitterSettings.svelte index af86543..3fc11e8 100644 --- a/src/components/TwitterSettings.svelte +++ b/src/components/TwitterSettings.svelte @@ -30,7 +30,7 @@
    Twitter
    {#if mounted} -
    +