Improved anime list rendering on missing images

This commit is contained in:
Eduard Urbach 2018-03-03 16:14:52 +01:00
parent ace8d0ddee
commit 61f4fdb386
2 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,7 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User
each item in animeList.Items
.anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + animeList.UserID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]")
.anime-list-item-image-container
a.ajax(href=item.Anime().Link())
a.anime-list-item-image-link.ajax(href=item.Anime().Link())
img.anime-list-item-image.lazy(data-src=item.Anime().Image("small"), data-webp="true", alt=item.Anime().Title.ByUser(user))
.anime-list-item-name

View File

@ -17,6 +17,9 @@
padding 0
width 39px
.anime-list-item-image-link
display flex
.anime-list-item-image
width 39px
height 39px