diff --git a/common/components/Search.svelte b/common/components/Search.svelte index cee7e6da..d413c8d1 100644 --- a/common/components/Search.svelte +++ b/common/components/Search.svelte @@ -54,7 +54,7 @@ } -
+
diff --git a/common/components/cards/FullCard.svelte b/common/components/cards/FullCard.svelte index 05cd6a32..4637858a 100644 --- a/common/components/cards/FullCard.svelte +++ b/common/components/cards/FullCard.svelte @@ -13,14 +13,14 @@ } -
-
+
-
+
cover
-
+
{#if media.mediaListEntry?.status} @@ -94,7 +94,7 @@ } .card { animation: 0.3s ease 0s 1 load-in; - width: 50rem !important; + width: 52rem !important; height: 27rem !important; box-shadow: rgba(0, 4, 12, 0.3) 0px 7px 15px, rgba(0, 4, 12, 0.05) 0px 4px 4px; contain-intrinsic-height: 27rem; diff --git a/common/components/cards/FullSkeletonCard.svelte b/common/components/cards/FullSkeletonCard.svelte index 13acd70a..604a6c42 100644 --- a/common/components/cards/FullSkeletonCard.svelte +++ b/common/components/cards/FullSkeletonCard.svelte @@ -1,5 +1,5 @@ -
-
+
+
diff --git a/common/components/cards/SkeletonCard.svelte b/common/components/cards/SkeletonCard.svelte index 2d8c2935..0d068d3b 100644 --- a/common/components/cards/SkeletonCard.svelte +++ b/common/components/cards/SkeletonCard.svelte @@ -1,5 +1,5 @@ -
-
+
+
@@ -8,14 +8,12 @@ diff --git a/common/components/cards/SmallCard.svelte b/common/components/cards/SmallCard.svelte index 27c06fc7..101206ea 100644 --- a/common/components/cards/SmallCard.svelte +++ b/common/components/cards/SmallCard.svelte @@ -19,11 +19,11 @@ } -
+
{#if preview} {/if} -
+
{#if $page === 'schedule'}
{#if media.airingSchedule?.nodes?.[0]?.airingAt} @@ -67,12 +67,13 @@ -webkit-box-orient: vertical; } img { - height: 27rem; + width: 100%; + aspect-ratio: 230/331; } .item { animation: 0.3s ease 0s 1 load-in; - width: 19rem; - contain-intrinsic-height: 36.7rem; + width: 100%; + aspect-ratio: 152/296; } .cover-img { background-color: var(--color) !important; diff --git a/common/css.css b/common/css.css index 376231b1..3577d905 100644 --- a/common/css.css +++ b/common/css.css @@ -196,4 +196,11 @@ img[src=''], img[src=' '] { .px-50 { padding-left: 5rem; padding-right: 5rem; +} + +@media (min-width: 769px) { + .px-md-50 { + padding-left: 5rem !important; + padding-right: 5rem !important; + } } \ No newline at end of file diff --git a/common/modules/sections.js b/common/modules/sections.js index 91f9bc84..04c8ff63 100644 --- a/common/modules/sections.js +++ b/common/modules/sections.js @@ -67,7 +67,8 @@ function createSections () { title, load: (page = 1, perPage = 12) => RSSManager.getMediaForRSS(page, perPage, url), preview: writable(RSSManager.getMediaForRSS(1, 12, url)), - variables: { disableSearch: true } + variables: { disableSearch: true }, + isRSS: true } // update every 30 seconds diff --git a/common/views/AiringSchedule.svelte b/common/views/AiringSchedule.svelte index 37ee6ff4..bd3bb925 100644 --- a/common/views/AiringSchedule.svelte +++ b/common/views/AiringSchedule.svelte @@ -22,6 +22,9 @@ const res = await anilistClient.search({ format: 'TV', ...SectionsManager.sanitiseObject(variables), year, season, status: 'RELEASING', page: 1, perPage: 50 }) results.data.Page.media = results.data.Page.media.concat(res.data.Page.media) + // filter out entries without airing schedule and duplicates [only allow first occurence] + results.data.Page.media = results.data.Page.media.filter((media, index, self) => media.airingSchedule?.nodes?.[0]?.airingAt && self.findIndex(m => m.id === media.id) === index) + results.data.Page.media.sort((a, b) => a.airingSchedule?.nodes?.[0]?.airingAt - b.airingSchedule?.nodes?.[0]?.airingAt) return results diff --git a/common/views/Home/Section.svelte b/common/views/Home/Section.svelte index 50006c6f..51927bad 100644 --- a/common/views/Home/Section.svelte +++ b/common/views/Home/Section.svelte @@ -39,7 +39,7 @@
View More
-