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

This commit is contained in:
Baoshuo Ren 2022-10-08 16:25:30 +08:00
parent 5c26699829
commit b6cb61d046
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 7 additions and 5 deletions

View File

@ -66,13 +66,11 @@ $col_names = array('contest_id');
$problem_review_id = "review-$contest_id-$i"; $problem_review_id = "review-$contest_id-$i";
$result .= '<td>' . chr(ord('A') + $i) . '. <a href="/problem/' . $problem_id . '">' . $problem['title'] . '</a></td>'; $result .= '<td>' . chr(ord('A') + $i) . '. <a href="/problem/' . $problem_id . '">' . $problem['title'] . '</a></td>';
$result .= '<td>' . $purifier->purify($problem_self_review != null ? $problem_self_review['content'] : '') . '</td>'; $result .= '<td>' . $purifier->purify($problem_self_review != null ? $problem_self_review['content'] : '') . '</td>';
$esc_problem_self_review = rawurlencode($problem_self_review != null ? $problem_self_review['content'] : '');
if ($i == 0) { if ($i == 0) {
$contest_review_id = "review-$contest_id-overall"; $contest_review_id = "review-$contest_id-overall";
$contest_self_review = DB::selectFirst("select content from contests_reviews where contest_id = $contest_id and problem_id = -1 and poster = '$username'"); $contest_self_review = DB::selectFirst("select content from contests_reviews where contest_id = $contest_id and problem_id = -1 and poster = '$username'");
$esc_contest_self_review = rawurlencode($contest_self_review != null ? $contest_self_review['content'] : ''); $result .= '<td rowspan="' . $n_contest_problems . '">' . $purifier->purify($contest_self_review != null ? $contest_self_review['content'] : '') . '</td>';
$result .= '<td rowspan="' . $n_contest_problems . '">' . $purifier->purify($problem_self_review != null ? $problem_self_review['content'] : '') . '</td>';
} }
$result .= '</tr>'; $result .= '</tr>';

View File

@ -55,9 +55,13 @@ label {
border-top-color: transparent; border-top-color: transparent;
} }
.uoj-table > thead > tr, .uoj-table > thead > tr > th:first-child,
.uoj-table > tbody > tr { .uoj-table > tbody > tr > td:first-child {
border-left-color: transparent; border-left-color: transparent;
}
.uoj-table > thead > tr > th:last-child,
.uoj-table > tbody > tr > td:last-child {
border-right-color: transparent; border-right-color: transparent;
} }