Fix problem table css

This commit is contained in:
cuom1999 2022-06-05 11:53:44 -05:00
parent f7d1db4dd5
commit 7128845dcf
2 changed files with 15 additions and 2 deletions

View file

@ -11,6 +11,12 @@
width: 100%;
}
&.pcode {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
}
&.pp {
text-align: left;
padding-left: 1em;
@ -329,3 +335,10 @@ ul.problem-list {
}
}
@media (min-width: 800px) {
#problem-table {
.pcode {
min-width: 7em;
}
}
}

View file

@ -47,7 +47,7 @@
<a href="{{ sort_links.ac_rate }}">{{ _('AC %%') }}{{ sort_order.ac_rate }}</a>
</th>
<th class="users">
<a href="{{ sort_links.user_count }}">{{ _('Users') }}{{ sort_order.user_count }}</a>
<a href="{{ sort_links.user_count }}">{{ _('AC #') }}{{ sort_order.user_count }}</a>
</th>
{% if show_editorial %}
<th class="editorial">
@ -109,7 +109,7 @@
{% endif %}
<td class="p">{{ problem.points|floatformat }}{% if problem.partial %}p{% endif %}</td>
{% if not request.in_contest_mode %}
<td class="ac-rate">{{ problem.ac_rate|floatformat(1) }}%</td>
<td class="ac-rate">{{ problem.ac_rate|floatformat(0) }}%</td>
{% endif %}
<td class="users">
<a href="{{ url('ranked_submissions', problem.code) }}">