Minor update to powertip display

Show country text based on user+country length.
This commit is contained in:
Isaac Levy 2017-06-22 12:25:19 -04:00
parent 53e4fff7d4
commit 3672d4d8b3
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
case (code, name) => {
<span class="country">
<img class="flag" src="@staticUrl(s"images/flags/$code.png")" alt="@name" title="@name" />
@if(u.username.size < 15) { @name }
@if(u.username.size + name.size < 25) { @name }
</span>
}
}

View file

@ -198,7 +198,7 @@ object Countries {
"TZ" -> "Tanzania",
"UA" -> "Ukraine",
"UG" -> "Uganda",
"US" -> "United States",
"US" -> "USA",
"UY" -> "Uruguay",
"UZ" -> "Uzbekistan",
"VC" -> "Saint Vincent and the Grenadines",