Improved tooltips

This commit is contained in:
2018-04-18 16:27:08 +02:00
parent 976563ed60
commit 334be053fe
9 changed files with 46 additions and 39 deletions

View File

@ -23,7 +23,7 @@ component Postable(post arn.Postable, user *arn.User, highlightAuthorID string)
Icon("close")
span Cancel
.post-date.utc-date(data-date=post.Created())
.post-date.utc-date.no-tip(data-date=post.Created())
.post-toolbar(id="toolbar-" + post.ID())
.spacer

View File

@ -1,5 +1,5 @@
component Rating(value float64, userCount int, user *arn.User)
if user == nil
.anime-rating(title="Rated by " + arn.Plural(userCount, "user"))= fmt.Sprintf("%.1f", value)
.anime-rating.tip(aria-label="Rated by " + arn.Plural(userCount, "user"))= fmt.Sprintf("%.1f", value)
else
.anime-rating(title="Rated by " + arn.Plural(userCount, "user"))= fmt.Sprintf("%." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f", value)
.anime-rating.tip(aria-label="Rated by " + arn.Plural(userCount, "user"))= fmt.Sprintf("%." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f", value)