diff --git a/web/app/controllers/list.php b/web/app/controllers/list.php
index 8a98d2f..8846bfb 100644
--- a/web/app/controllers/list.php
+++ b/web/app/controllers/list.php
@@ -13,21 +13,23 @@ function getProblemTR($info) {
$html = HTML::tag_begin('tr', ['class' => 'text-center']);
$html .= HTML::tag('td', ['class' => $info['submission_id'] ? 'table-success' : ''], "#{$info['id']}");
- $html .= HTML::tag_begin('td', ['class' => 'text-start']);
+ $html .= HTML::tag_begin('td', ['class' => 'text-start align-middle']);
$html .= $problem->getLink(['with' => 'none']);
if ($problem->isUserOwnProblem(Auth::user())) {
- $html .= ' ' . UOJLocale::get('problems::my problem') . ' ';
+ $html .= ' ' . UOJLocale::get('problems::my problem') . ' ';
}
if ($info['type'] == 'remote') {
- HTML::tag('a', ['class' => 'badge text-bg-success', 'href' => '/problems/remote'], '远端评测题');
+ HTML::tag('a', ['class' => 'badge text-bg-success align-middle', 'href' => '/problems/remote'], '远端评测题');
}
if ($info['is_hidden']) {
- $html .= ' ' . UOJLocale::get('hidden') . ' ';
+ $html .= ' ' . UOJLocale::get('hidden') . ' ';
}
if (isset($_COOKIE['show_tags_mode'])) {
+ $html .= HTML::tag_begin('span', ['class' => 'float-end']);
foreach ($problem->queryTags() as $tag) {
- $html .= ' ' . '' . HTML::escape($tag) . '' . ' ';
+ $html .= ' ' . '' . HTML::escape($tag) . '' . ' ';
}
+ $html .= HTML::tag_end('span');
}
$html .= HTML::tag_end('td');
if (isset($_COOKIE['show_submit_mode'])) {
@@ -35,11 +37,13 @@ function getProblemTR($info) {
$html .= HTML::tag(
'td',
- [],
+ [
+ 'class' => 'align-middle',
+ ],
HTML::tag(
'div',
[
- 'class' => 'progress',
+ 'class' => 'progress h-100',
'data-bs-toggle' => 'tooltip',
'data-bs-title' => "{$info['ac_num']} / {$info['submit_num']}",
'data-bs-placement' => 'bottom',
diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php
index 25f2ac8..d13acb0 100644
--- a/web/app/controllers/problem_set.php
+++ b/web/app/controllers/problem_set.php
@@ -100,11 +100,11 @@ function getProblemTR($info) {
$html .= ' ' . UOJLocale::get('hidden') . ' ';
}
if (isset($_COOKIE['show_tags_mode'])) {
- echo HTML::tag_begin('span', ['class' => 'float-end']);
+ $html .= HTML::tag_begin('span', ['class' => 'float-end']);
foreach ($problem->queryTags() as $tag) {
$html .= ' ' . '' . HTML::escape($tag) . '' . ' ';
}
- echo HTML::tag_end('span');
+ $html .= HTML::tag_end('span');
}
$html .= HTML::tag_end('td');
if (isset($_COOKIE['show_submit_mode'])) {