From 4de6ed5e2d264703bd5b5ea27c2537bcdadca1df Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 2 Jul 2018 22:51:56 +0900 Subject: [PATCH 1/2] Fix sidebar not moving to the left --- pages/anime/episodes.pixy | 9 ++++----- pages/anime/episodes.scarlet | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/anime/episodes.pixy b/pages/anime/episodes.pixy index bd40e278..d52d5c6a 100644 --- a/pages/anime/episodes.pixy +++ b/pages/anime/episodes.pixy @@ -15,11 +15,10 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, user *ar if episode.Number != -1 span= episode.Number - .episode-title - if episode.Title.Japanese != "" - span= episode.Title.Japanese - else - span - + if episode.Title.Japanese != "" + span.episode-title= episode.Title.Japanese + else + span.episode-title - if validate.DateTime(episode.AiringDate.Start) .episode-airing-date-start.utc-airing-date.no-tip(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman() diff --git a/pages/anime/episodes.scarlet b/pages/anime/episodes.scarlet index 8db0f59e..df893a77 100644 --- a/pages/anime/episodes.scarlet +++ b/pages/anime/episodes.scarlet @@ -10,7 +10,7 @@ const episode-margin = 0.5rem button-hover margin episode-margin padding 0.5rem - flex-basis calc(50% - episode-margin * 2) + width calc(50% - episode-margin * 2) overflow hidden color text-color box-shadow shadow-light @@ -28,7 +28,7 @@ const episode-margin = 0.5rem justify-content flex-start .episode - flex-basis 190px + width 190px .episode-number display flex From 06a83e02e31dd664304dd8cc482f01b049f1ce97 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 2 Jul 2018 22:54:02 +0900 Subject: [PATCH 2/2] Make anime title clickable on episode page --- pages/episode/episode.pixy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/episode/episode.pixy b/pages/episode/episode.pixy index 642460f9..8a21a1e6 100644 --- a/pages/episode/episode.pixy +++ b/pages/episode/episode.pixy @@ -1,5 +1,6 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.User) - h1= anime.Title.ByUser(user) + h1 + a(href=anime.Link())= anime.Title.ByUser(user) .episode-view-image-container a(href=anime.Link(), title=anime.Title.ByUser(user))