Improved anime list rendering on missing images
This commit is contained in:
parent
ace8d0ddee
commit
61f4fdb386
@ -43,7 +43,7 @@ component AnimeList(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User
|
|||||||
each item in animeList.Items
|
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.mountable(title=item.Notes, data-api="/api/animelist/" + animeList.UserID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]")
|
||||||
.anime-list-item-image-container
|
.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))
|
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
|
.anime-list-item-name
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
padding 0
|
padding 0
|
||||||
width 39px
|
width 39px
|
||||||
|
|
||||||
|
.anime-list-item-image-link
|
||||||
|
display flex
|
||||||
|
|
||||||
.anime-list-item-image
|
.anime-list-item-image
|
||||||
width 39px
|
width 39px
|
||||||
height 39px
|
height 39px
|
||||||
|
Loading…
Reference in New Issue
Block a user