From 7128845dcf633f9a249de4c0ed447195767fcaad Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sun, 5 Jun 2022 11:53:44 -0500 Subject: [PATCH] Fix problem table css --- resources/problem.scss | 13 +++++++++++++ templates/problem/list.html | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/resources/problem.scss b/resources/problem.scss index 804ca69..dec1a82 100644 --- a/resources/problem.scss +++ b/resources/problem.scss @@ -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; + } + } +} diff --git a/templates/problem/list.html b/templates/problem/list.html index fc1252a..6c177f9 100644 --- a/templates/problem/list.html +++ b/templates/problem/list.html @@ -47,7 +47,7 @@ {{ _('AC %%') }}{{ sort_order.ac_rate }} - {{ _('Users') }}{{ sort_order.user_count }} + {{ _('AC #') }}{{ sort_order.user_count }} {% if show_editorial %} @@ -109,7 +109,7 @@ {% endif %} {{ problem.points|floatformat }}{% if problem.partial %}p{% endif %} {% if not request.in_contest_mode %} - {{ problem.ac_rate|floatformat(1) }}% + {{ problem.ac_rate|floatformat(0) }}% {% endif %}