chore(contest/standings): acm standings table style
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-08 11:40:08 +08:00
parent a894939f75
commit 3b05222867
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -1710,19 +1710,19 @@ function getACMStandingsMeta() {
function setACMStandingsTH(th, i, meta) { function setACMStandingsTH(th, i, meta) {
if (i == -3) { if (i == -3) {
return $(th).css('width', '34px').text('#'); return $(th).css('width', '3em').text('#');
} else if (i == -2) { } else if (i == -2) {
if (problems.length <= 10) { if (problems.length <= 10) {
$(th).css('width', '114px'); $(th).css('width', '14em');
} }
return $(th).text(uojLocale('username')); return $(th).text(uojLocale('username'));
} else if (i == -1) { } else if (i == -1) {
return $(th).css('width', '57px').text(uojLocale('contests::total score')); return $(th).css('width', '5em').text(uojLocale('contests::total score'));
} }
var pid = problems[i]; var pid = problems[i];
$(th).css('width', '57px'); $(th).css('width', '5em');
if (("problem_" + pid) in bonus) { if (("problem_" + pid) in bonus) {
$(th).attr('title', '附加题,通过后减免 20 分钟罚时'); $(th).attr('title', '附加题,通过后减免 20 分钟罚时');
} }