Added ratings tooltip

This commit is contained in:
Eduard Urbach 2018-04-18 16:52:14 +02:00
parent 47c49c960a
commit bc21b83cff
2 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,7 @@ component AnimeListScrollable(animeListItems []*arn.AnimeListItem, viewUser *arn
.anime-list-item-episodes-separator /
.anime-list-item-episodes-max= item.Anime().EpisodeCountString()
.anime-list-item-rating(title="Overall rating")
.anime-list-item-rating.tip(aria-label="O: " + utils.FormatRating(item.Rating.Overall) + " | S: " + utils.FormatRating(item.Rating.Story) + " | V: " + utils.FormatRating(item.Rating.Visuals) + " | M: " + utils.FormatRating(item.Rating.Soundtrack))
.action(contenteditable=utils.SameUser(user, viewUser), data-field="Rating.Overall", data-type="number", data-trigger="focusout", data-action="save")= utils.FormatRating(item.Rating.Overall)
//- if item.Status == arn.AnimeListStatusCompleted

View File

@ -85,8 +85,9 @@
horizontal
text-align right
justify-content flex-end
flex-basis 65px
flex-basis 20px
flex-shrink 1
margin-left 45px
// .rating-label
// opacity 0.5