From 94ac59929e41cae52bffd34155ce0ef70fcb5e81 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 8 Oct 2022 14:04:26 +0800 Subject: [PATCH] fix(web): responsible table --- web/app/controllers/problem_list.php | 2 +- web/app/controllers/problem_set.php | 2 +- web/app/libs/uoj-html-lib.php | 4 ++-- web/app/views/contest-dashboard.php | 4 ++-- web/app/views/contest-question-table.php | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/app/controllers/problem_list.php b/web/app/controllers/problem_list.php index 3b92538..a6a7cef 100644 --- a/web/app/controllers/problem_list.php +++ b/web/app/controllers/problem_list.php @@ -114,7 +114,7 @@ EOD; $pag = new Paginator($pag_config); $div_classes = isset($REQUIRE_LIB['bootstrap5']) - ? array('card', 'my-3', 'overflow-auto') + ? array('card', 'my-3', 'table-responsive') : array('table-responsive'); $table_classes = isset($REQUIRE_LIB['bootstrap5']) ? array('table', 'uoj-table', 'mb-0') diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php index 5772de0..8ea93c3 100644 --- a/web/app/controllers/problem_set.php +++ b/web/app/controllers/problem_set.php @@ -163,7 +163,7 @@ EOD; $pag = new Paginator($pag_config); $div_classes = isset($REQUIRE_LIB['bootstrap5']) - ? array('card', 'my-3', 'overflow-auto') + ? array('card', 'my-3', 'table-responsive') : array('table-responsive'); $table_classes = isset($REQUIRE_LIB['bootstrap5']) ? array('table', 'uoj-table', 'mb-0') diff --git a/web/app/libs/uoj-html-lib.php b/web/app/libs/uoj-html-lib.php index bb1fb7e..d8b63ea 100644 --- a/web/app/libs/uoj-html-lib.php +++ b/web/app/libs/uoj-html-lib.php @@ -374,7 +374,7 @@ function echoSubmissionsListOnlyOne($submission, $config, $user) { global $REQUIRE_LIB; if (isset($REQUIRE_LIB['bootstrap5'])) { - echo '
'; + echo '
'; echo ''; } else { echo '
'; @@ -1202,7 +1202,7 @@ function echoHackListOnlyOne($hack, $config, $user) { global $REQUIRE_LIB; if (isset($REQUIRE_LIB['bootstrap5'])) { - echo '
'; + echo '
'; echo '
'; } else { echo '
'; diff --git a/web/app/views/contest-dashboard.php b/web/app/views/contest-dashboard.php index f09f462..3b014c8 100644 --- a/web/app/views/contest-dashboard.php +++ b/web/app/views/contest-dashboard.php @@ -1,5 +1,5 @@ -
+
@@ -28,7 +28,7 @@

-
+
diff --git a/web/app/views/contest-question-table.php b/web/app/views/contest-question-table.php index fb626dd..0ae9000 100644 --- a/web/app/views/contest-question-table.php +++ b/web/app/views/contest-question-table.php @@ -7,7 +7,7 @@ if (!isset($can_reply)) { ?> -
+