From 9a825225dd6c622b4c21dfe2d3fa3e7ef2d2dfa4 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Fri, 25 Aug 2023 18:38:19 -0500 Subject: [PATCH] Small UI improvement --- judge/forms.py | 2 +- templates/organization/contest/edit.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/judge/forms.py b/judge/forms.py index d71ffbc..fc73b31 100644 --- a/judge/forms.py +++ b/judge/forms.py @@ -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%"} ), } diff --git a/templates/organization/contest/edit.html b/templates/organization/contest/edit.html index 5682504..d5d9228 100644 --- a/templates/organization/contest/edit.html +++ b/templates/organization/contest/edit.html @@ -17,7 +17,7 @@ display: inline-flex; } .problems-problem { - width: 40%; + max-width: 60vh; } input[type=number] { width: 5em; @@ -63,7 +63,7 @@ {% for field in problems_form[0] %} {% if not field.is_hidden %} - + {{field.label}} {% endif %}