fix(web): responsible table

This commit is contained in:
Baoshuo Ren 2022-10-08 14:04:26 +08:00
parent 8ad7d5cb00
commit 94ac59929e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
5 changed files with 7 additions and 7 deletions

View File

@ -114,7 +114,7 @@ EOD;
$pag = new Paginator($pag_config); $pag = new Paginator($pag_config);
$div_classes = isset($REQUIRE_LIB['bootstrap5']) $div_classes = isset($REQUIRE_LIB['bootstrap5'])
? array('card', 'my-3', 'overflow-auto') ? array('card', 'my-3', 'table-responsive')
: array('table-responsive'); : array('table-responsive');
$table_classes = isset($REQUIRE_LIB['bootstrap5']) $table_classes = isset($REQUIRE_LIB['bootstrap5'])
? array('table', 'uoj-table', 'mb-0') ? array('table', 'uoj-table', 'mb-0')

View File

@ -163,7 +163,7 @@ EOD;
$pag = new Paginator($pag_config); $pag = new Paginator($pag_config);
$div_classes = isset($REQUIRE_LIB['bootstrap5']) $div_classes = isset($REQUIRE_LIB['bootstrap5'])
? array('card', 'my-3', 'overflow-auto') ? array('card', 'my-3', 'table-responsive')
: array('table-responsive'); : array('table-responsive');
$table_classes = isset($REQUIRE_LIB['bootstrap5']) $table_classes = isset($REQUIRE_LIB['bootstrap5'])
? array('table', 'uoj-table', 'mb-0') ? array('table', 'uoj-table', 'mb-0')

View File

@ -374,7 +374,7 @@ function echoSubmissionsListOnlyOne($submission, $config, $user) {
global $REQUIRE_LIB; global $REQUIRE_LIB;
if (isset($REQUIRE_LIB['bootstrap5'])) { if (isset($REQUIRE_LIB['bootstrap5'])) {
echo '<div class="card mb-3">'; echo '<div class="card mb-3 table-responsive">';
echo '<table class="table text-center uoj-table mb-0">'; echo '<table class="table text-center uoj-table mb-0">';
} else { } else {
echo '<div class="table-responsive">'; echo '<div class="table-responsive">';
@ -1202,7 +1202,7 @@ function echoHackListOnlyOne($hack, $config, $user) {
global $REQUIRE_LIB; global $REQUIRE_LIB;
if (isset($REQUIRE_LIB['bootstrap5'])) { if (isset($REQUIRE_LIB['bootstrap5'])) {
echo '<div class="card mb-3">'; echo '<div class="card mb-3 table-responsive">';
echo '<table class="table text-center uoj-table mb-0">'; echo '<table class="table text-center uoj-table mb-0">';
} else { } else {
echo '<div class="table-responsive">'; echo '<div class="table-responsive">';

View File

@ -1,5 +1,5 @@
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card card-default mb-3"> <div class="card card-default table-responsive mb-3">
<table class="table uoj-table text-center mb-0"> <table class="table uoj-table text-center mb-0">
<?php else: ?> <?php else: ?>
<div class="table-responsive"> <div class="table-responsive">
@ -28,7 +28,7 @@
<h3><?= UOJLocale::get('contests::contest notice') ?></h3> <h3><?= UOJLocale::get('contests::contest notice') ?></h3>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card card-default mb-3"> <div class="card card-default table-responsive mb-3">
<table class="table uoj-table text-center mb-0"> <table class="table uoj-table text-center mb-0">
<?php else: ?> <?php else: ?>
<div class="table-responsive"> <div class="table-responsive">

View File

@ -7,7 +7,7 @@ if (!isset($can_reply)) {
?> ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?> <?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<div class="card card-default mb-3"> <div class="card card-default table-responsive mb-3">
<table class="table uoj-table text-center mb-0"> <table class="table uoj-table text-center mb-0">
<?php else: ?> <?php else: ?>
<div class="table-responsive"> <div class="table-responsive">