diff --git a/pages/profile/watching.scarlet b/pages/profile/watching.scarlet index 232fdcb2..d60ab9dd 100644 --- a/pages/profile/watching.scarlet +++ b/pages/profile/watching.scarlet @@ -11,5 +11,12 @@ .profile-watching-list-item anime-mini-item + [data-added="false"] + transition filter transition-speed ease + filter saturate(0) + + :hover + filter saturate(1) + .profile-watching-list-item-image - anime-mini-item-image \ No newline at end of file + anime-mini-item-image diff --git a/pages/search/search.pixy b/pages/search/search.pixy index b2e91ff5..70dfa3e7 100644 --- a/pages/search/search.pixy +++ b/pages/search/search.pixy @@ -80,7 +80,7 @@ component AnimeSearchResults(animes []*arn.Anime, user *arn.User) else .profile-watching-list.anime-search each anime in animes - a.profile-watching-list-item.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user), data-mountable-type="anime") + a.profile-watching-list-item.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user), data-mountable-type="anime", data-added=(user != nil && user.AnimeList().Contains(anime.ID))) img.anime-cover-image.anime-search-result.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user)) component CharacterSearchResults(characters []*arn.Character, user *arn.User)