fix: 94ac59929e
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-08 15:42:30 +08:00
parent 47e64d8a24
commit 5c26699829
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 5 additions and 4 deletions

View File

@ -441,7 +441,7 @@ EOD;
$config = array(
'judge_time_hidden' => '',
'table_config' => array(
'div_classes' => array('card', 'mb-3', 'overflow-auto'),
'div_classes' => array('card', 'mb-3', 'table-responsive'),
'table_classes' => array('table', 'mb-0', 'uoj-table', 'text-center')
),
);

View File

@ -148,7 +148,7 @@ d-inline-block
'judge_time_hidden' => '',
'table_config' => (isset($REQUIRE_LIB['bootstrap5'])
? array(
'div_classes' => array('card', 'mb-3', 'overflow-auto'),
'div_classes' => array('card', 'mb-3', 'table-responsive'),
'table_classes' => array('table', 'mb-0', 'uoj-table', 'text-center')
)
: array()

View File

@ -119,7 +119,7 @@ d-inline-block
'judge_time_hidden' => '',
'table_config' => (isset($REQUIRE_LIB['bootstrap5'])
? array(
'div_classes' => array('card', 'mb-3', 'overflow-auto'),
'div_classes' => array('card', 'mb-3', 'table-responsive'),
'table_classes' => array('table', 'mb-0', 'uoj-table', 'text-center')
)
: array()

View File

@ -1165,7 +1165,8 @@ function showStandings() {
col_tr += '</tr>';
return col_tr;
}, {
table_classes: ['table', 'table-bordered', 'overflow-auto', 'text-center', 'uoj-table', 'uoj-standings-table', 'mb-0'],
div_classes: ['table-responsive'],
table_classes: ['table', 'table-bordered', 'text-center', 'uoj-table', 'uoj-standings-table', 'mb-0'],
page_len: 100,
print_after_table: function() {
return '<div class="card-footer bg-transparent text-end text-muted">' + uojLocale("contests::n participants", standings.length) + '</div><script>if (window.MathJax) window.MathJax.typeset();</scr' + 'ipt>';