Small UI improvement

This commit is contained in:
cuom1999 2023-08-25 18:38:19 -05:00
parent 8f046c59c1
commit 9a825225dd
2 changed files with 3 additions and 3 deletions

View file

@ -533,7 +533,7 @@ class ContestProblemForm(ModelForm):
)
widgets = {
"problem": HeavySelect2Widget(
data_view="problem_select2", attrs={"style": "width:100%"}
data_view="problem_select2", attrs={"style": "width: 100%"}
),
}

View file

@ -17,7 +17,7 @@
display: inline-flex;
}
.problems-problem {
width: 40%;
max-width: 60vh;
}
input[type=number] {
width: 5em;
@ -63,7 +63,7 @@
<tr>
{% for field in problems_form[0] %}
{% if not field.is_hidden %}
<th>
<th class="problems-{{field.name}}">
{{field.label}}
</th>
{% endif %}