From 5c266998299166daf38d994691a928a88ad98611 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 8 Oct 2022 15:42:30 +0800 Subject: [PATCH] fix: 94ac59929e41cae52bffd34155ce0ef70fcb5e81 --- web/app/controllers/contest_inside.php | 2 +- web/app/controllers/hack_list.php | 2 +- web/app/controllers/submissions_list.php | 2 +- web/js/uoj.js | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/app/controllers/contest_inside.php b/web/app/controllers/contest_inside.php index 436de9a..ec9d0bc 100644 --- a/web/app/controllers/contest_inside.php +++ b/web/app/controllers/contest_inside.php @@ -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') ), ); diff --git a/web/app/controllers/hack_list.php b/web/app/controllers/hack_list.php index b1b44dd..32d69ff 100644 --- a/web/app/controllers/hack_list.php +++ b/web/app/controllers/hack_list.php @@ -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() diff --git a/web/app/controllers/submissions_list.php b/web/app/controllers/submissions_list.php index 41b13e5..5c61109 100644 --- a/web/app/controllers/submissions_list.php +++ b/web/app/controllers/submissions_list.php @@ -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() diff --git a/web/js/uoj.js b/web/js/uoj.js index b02e4de..133922e 100644 --- a/web/js/uoj.js +++ b/web/js/uoj.js @@ -1165,7 +1165,8 @@ function showStandings() { col_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 '