diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php index de7705f..bb871d0 100644 --- a/web/app/controllers/problem_set.php +++ b/web/app/controllers/problem_set.php @@ -154,7 +154,7 @@ EOD; ? array('card', 'mb-3') : array('table-responsive'); $table_classes = isset($REQUIRE_LIB['bootstrap5']) - ? array('table', 'uoj-problem-list-table', 'mb-0') + ? array('table', 'uoj-table', 'mb-0') : array('table', 'table-bordered', 'table-hover', 'table-striped'); ?> diff --git a/web/app/controllers/ranklist.php b/web/app/controllers/ranklist.php index 0d464ac..61b6892 100644 --- a/web/app/controllers/ranklist.php +++ b/web/app/controllers/ranklist.php @@ -13,7 +13,15 @@ } else { become404Page(); } + + if (!isset($_COOKIE['bootstrap4'])) { + $REQUIRE_LIB['bootstrap5'] = ''; + + $config['div_classes'] = array('card', 'mb-3'); + $config['table_classes'] = array('table', 'uoj-table', 'mb-0', 'text-center'); + } ?> +