fix(web/submissions): table header cell min-width
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-06 14:15:07 +08:00
parent 9d0c70151e
commit ec859e1564
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 8 additions and 6 deletions

View File

@ -59,7 +59,7 @@ if (!$conds) {
<input type="text" class="form-control form-control-sm" name="problem_id" id="input-problem_id" value="<?= $q_problem_id ?>" style="width:4em" />
</div>
<div id="form-group-submitter" class="col-auto">
<label for="input-submitter" class="control-label">
<label for="input-submitter" class="form-label">
<?= UOJLocale::get('username') ?>:
</label>
<div class="input-group input-group-sm">
@ -79,7 +79,7 @@ if (!$conds) {
</script>
</div>
<div id="form-group-score" class="col-auto">
<label for="input-min_score" class="control-label">
<label for="input-min_score" class="form-label">
<?= UOJLocale::get('score range') ?>:
</label>
<div class="input-group input-group-sm">
@ -89,7 +89,9 @@ if (!$conds) {
</div>
</div>
<div id="form-group-language" class="col-auto">
<label for="input-language" class="control-label"><?= UOJLocale::get('problems::language') ?>:</label>
<label for="input-language" class="form-label">
<?= UOJLocale::get('problems::language') ?>:
</label>
<select class="form-select form-select-sm" id="input-language" name="language">
<option value="">All</option>
<?php foreach (UOJLang::$supported_languages as $name => $lang) : ?>

View File

@ -362,7 +362,7 @@ function echoSubmissionsList($cond, $tail, $config, $user) {
$col_names[] = 'submissions.submitter';
}
if (!isset($config['result_hidden'])) {
$header_row .= '<th>' . UOJLocale::get('problems::result') . '</th>';
$header_row .= '<th style="min-width:3em">' . UOJLocale::get('problems::result') . '</th>';
}
if (!isset($config['used_time_hidden'])) {
$header_row .= '<th>' . UOJLocale::get('problems::used time') . '</th>';
@ -372,9 +372,9 @@ function echoSubmissionsList($cond, $tail, $config, $user) {
$header_row .= '<th>' . UOJLocale::get('problems::used memory') . '</th>';
$col_names[] = 'submissions.used_memory';
}
$header_row .= '<th>' . UOJLocale::get('problems::language') . '</th>';
$header_row .= '<th style="min-width:5em">' . UOJLocale::get('problems::language') . '</th>';
$col_names[] = 'submissions.language';
$header_row .= '<th>' . UOJLocale::get('problems::file size') . '</th>';
$header_row .= '<th style="min-width:5em">' . UOJLocale::get('problems::file size') . '</th>';
$col_names[] = 'submissions.tot_size';
if (!isset($config['submit_time_hidden'])) {