Fix submission css
This commit is contained in:
parent
e996e9e47f
commit
4259b909a0
2 changed files with 11 additions and 4 deletions
|
@ -49,11 +49,14 @@
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
.name {
|
.sub-user {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
.sub-problem {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name:hover {
|
.sub-problem:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,6 +92,8 @@
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="sub-details">
|
<div class="sub-details">
|
||||||
<div class="sub-info{% if submission.status == 'G' %} sub-info-grading{% endif %}">
|
<div class="sub-info{% if submission.status == 'G' %} sub-info-grading{% endif %}">
|
||||||
{{ link_user(submission.user) }}
|
<div class="sub-user" style="max-width: {{50 if show_problem else 100}}%">
|
||||||
|
{{ link_user(submission.user) }}
|
||||||
|
</div>
|
||||||
{% if show_problem %}
|
{% if show_problem %}
|
||||||
<span>—</span>
|
<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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="sub-result">
|
<div class="sub-result">
|
||||||
|
|
Loading…
Reference in a new issue