From bc21b83cffb76f54eb75f0ff24556a7b2c9d7ee2 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 18 Apr 2018 16:52:14 +0200 Subject: [PATCH] Added ratings tooltip --- mixins/AnimeList.pixy | 2 +- pages/animelist/animelist.scarlet | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mixins/AnimeList.pixy b/mixins/AnimeList.pixy index 3bcf21fd..e0e4bceb 100644 --- a/mixins/AnimeList.pixy +++ b/mixins/AnimeList.pixy @@ -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 diff --git a/pages/animelist/animelist.scarlet b/pages/animelist/animelist.scarlet index ff7abec5..f63e472c 100644 --- a/pages/animelist/animelist.scarlet +++ b/pages/animelist/animelist.scarlet @@ -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