Improved tooltips

This commit is contained in:
Eduard Urbach 2018-04-18 14:05:44 +02:00
parent 0ebcd46fb6
commit 2302dbad31
4 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@ component EditorRankingList(users []*arn.User, idToScore map[string]int, url str
td= toString(index + 1) + "." td= toString(index + 1) + "."
td.ranking-user td.ranking-user
Avatar(user) Avatar(user)
a(href=user.Link())= user.Nick a.ranking-user-nick(href=user.Link())= user.Nick
td.ranking-score= idToScore[user.ID] td.ranking-score= idToScore[user.ID]
.footer.mountable .footer.mountable

View File

@ -15,7 +15,7 @@ component OsuRankingList(users []*arn.User, url string)
td= toString(index + 1) + "." td= toString(index + 1) + "."
td.ranking-user td.ranking-user
Avatar(user) Avatar(user)
a(href=user.Link())= user.Nick a.ranking-user-nick(href=user.Link())= user.Nick
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp" td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%" td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"

View File

@ -15,7 +15,7 @@ component OverwatchRankingList(users []*arn.User, url string)
td= toString(index + 1) + "." td= toString(index + 1) + "."
td.ranking-user td.ranking-user
Avatar(user) Avatar(user)
a(href=user.Link())= user.Nick a.ranking-user-nick(href=user.Link())= user.Nick
td.ranking-tier= strings.Title(user.Accounts.Overwatch.Tier) td.ranking-tier= strings.Title(user.Accounts.Overwatch.Tier)
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR" td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"

View File

@ -14,7 +14,9 @@
.user-image .user-image
width calc(avatar-size / 2) width calc(avatar-size / 2)
height calc(avatar-size / 2) height calc(avatar-size / 2)
margin-right 1rem
.ranking-user-nick
margin-left 0.8rem
.ranking-score, .ranking-score,
.ranking-accuracy .ranking-accuracy