mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:08:42 +00:00
fix(submission): test title width
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dc3c40463d
commit
fe7b22959b
@ -472,7 +472,7 @@ class JudgmentDetailsPrinter {
|
||||
echo '<button type="button" class="accordion-button py-2 px-3 collapsed uoj-submission-result-item" data-bs-toggle="collapse" data-bs-parent="#', $accordion_parent, '" data-bs-target="#', $accordion_collapse, '">';
|
||||
|
||||
echo '<div class="row w-100">';
|
||||
echo '<div class="col-sm-4">';
|
||||
echo '<div class="col-sm-3">';
|
||||
if ($subtask_title !== '') {
|
||||
echo '<h3 class="fs-5 mb-0">', $subtask_title, ': ', '</h3>';
|
||||
} else {
|
||||
@ -503,7 +503,7 @@ class JudgmentDetailsPrinter {
|
||||
|
||||
if ($subtask_memory >= 0) {
|
||||
echo '<div class="col-sm-2">';
|
||||
echo '<i class="bi bi-memory"></i> ', $subtask_memory, ' kB';
|
||||
echo '<i class="bi bi-memory"></i> ', $subtask_memory, ' KB';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@ -549,7 +549,7 @@ class JudgmentDetailsPrinter {
|
||||
echo '<button type="button" class="accordion-button py-2 px-3 collapsed uoj-submission-result-item">';
|
||||
}
|
||||
echo '<div class="row w-100">';
|
||||
echo '<div class="col-sm-4">';
|
||||
echo '<div class="col-sm-3">';
|
||||
if ($test_num > 0) {
|
||||
echo '<h4 class="fs-5 mb-0">', 'Test #', $test_num, '</h4>';
|
||||
} else {
|
||||
@ -580,7 +580,7 @@ class JudgmentDetailsPrinter {
|
||||
|
||||
if ($test_memory >= 0) {
|
||||
echo '<div class="col-sm-2">';
|
||||
echo '<i class="bi bi-memory"></i> ', $test_memory, ' kB';
|
||||
echo '<i class="bi bi-memory"></i> ', $test_memory, ' KB';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@ -620,8 +620,8 @@ class JudgmentDetailsPrinter {
|
||||
echo '<button class="accordion-button py-2 px-3 collapsed uoj-submission-result-item">';
|
||||
}
|
||||
echo '<div class="row w-100">';
|
||||
echo '<div class="col-sm-4">';
|
||||
echo '<h4 class="card-title">', 'Custom Test', '</h4>';
|
||||
echo '<div class="col-sm-3">';
|
||||
echo '<h4 class="fs-5 mb-0">', 'Custom Test', '</h4>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="col-sm uoj-status-text">';
|
||||
@ -637,7 +637,7 @@ class JudgmentDetailsPrinter {
|
||||
|
||||
if ($test_memory >= 0) {
|
||||
echo '<div class="col-sm-2">';
|
||||
echo '<i class="bi bi-memory"></i> ', $test_memory, ' kB';
|
||||
echo '<i class="bi bi-memory"></i> ', $test_memory, ' KB';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
@ -275,23 +275,23 @@ trait UOJSubmissionLikeTrait {
|
||||
break;
|
||||
case 'used_time':
|
||||
if ($cfg['show_actual_score']) {
|
||||
echo $this->info['used_time'] . 'ms';
|
||||
echo $this->info['used_time'] . ' ms';
|
||||
} else {
|
||||
echo '/';
|
||||
}
|
||||
break;
|
||||
case 'used_memory':
|
||||
if ($cfg['show_actual_score']) {
|
||||
echo $this->info['used_memory'] . 'KB';
|
||||
echo $this->info['used_memory'] . ' KB';
|
||||
} else {
|
||||
echo '/';
|
||||
}
|
||||
break;
|
||||
case 'tot_size':
|
||||
if ($this->info['tot_size'] < 1024) {
|
||||
echo $this->info['tot_size'] . 'B';
|
||||
echo $this->info['tot_size'] . ' B';
|
||||
} else {
|
||||
echo sprintf("%.1f", $this->info['tot_size'] / 1024) . 'KB';
|
||||
echo sprintf("%.1f", $this->info['tot_size'] / 1024) . ' KB';
|
||||
}
|
||||
break;
|
||||
case 'submit_time':
|
||||
|
Loading…
Reference in New Issue
Block a user