fix(web/problem): flex-shrink for info card title
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-12-07 22:49:21 +08:00
parent 56b2077a5a
commit 664fca166e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -385,16 +385,16 @@ if (UOJContest::cur()) {
<div class="card mb-2">
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between align-items-center">
<span>上传者</span>
<span class="flex-shrink-0">上传者</span>
<span><?= UOJProblem::cur()->getUploaderLink() ?></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span>难度</span>
<span class="flex-shrink-0">难度</span>
<span><?= UOJProblem::cur()->getDifficultyHTML() ?></span>
</li>
<?php if (Auth::check()) : ?>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span>历史分数</span>
<span class="flex-shrink-0">历史分数</span>
<?php $his_score = DB::selectSingle(["select max(score)", "from submissions", "where", ["problem_id" => UOJProblem::info('id'), "submitter" => Auth::id()]]) ?>
<a class="<?= is_null($his_score) ? '' : 'uoj-score' ?>" href="<?= HTML::url('/submissions', ['params' => ['problem_id' => UOJProblem::info('id'), 'submitter' => Auth::id()]]) ?>">
@ -403,7 +403,7 @@ if (UOJContest::cur()) {
</li>
<?php endif ?>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span>标签</span>
<span class="flex-shrink-0">标签</span>
<span>
<?php if (UOJProblem::info('is_hidden')) : ?>
<a href="<?= HTML::url('/problems', ['params' => ['is_hidden' => 'on']]) ?>">
@ -423,7 +423,7 @@ if (UOJContest::cur()) {
</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<span>评价</span>
<span class="flex-shrink-0">评价</span>
<span><?= UOJProblem::cur()->getZanBlock() ?></span>
</li>
</ul>