Fix submission css

This commit is contained in:
cuom1999 2024-02-08 12:57:06 -06:00
parent e996e9e47f
commit 4259b909a0
2 changed files with 11 additions and 4 deletions

View file

@ -49,11 +49,14 @@
font-size: 1.2em;
margin-bottom: 10px;
.name {
.sub-user {
overflow-wrap: break-word;
}
.sub-problem {
font-weight: 700;
}
.name:hover {
.sub-problem:hover {
text-decoration: underline;
}
}
@ -89,6 +92,8 @@
border-radius: 50%;
overflow: hidden;
margin-right: 15px;
display: flex;
align-items: center;
img {
width: 100%;

View file

@ -4,10 +4,12 @@
</div>
<div class="sub-details">
<div class="sub-info{% if submission.status == 'G' %} sub-info-grading{% endif %}">
<div class="sub-user" style="max-width: {{50 if show_problem else 100}}%">
{{ link_user(submission.user) }}
</div>
{% if show_problem %}
<span></span>
<div class="name"><a href="{{ url('problem_detail', submission.problem.code) }}">{{ problem_name }}</a></div>
<div class="sub-problem"><a href="{{ url('problem_detail', submission.problem.code) }}">{{ problem_name }}</a></div>
{% endif %}
</div>
<div class="sub-result">