From 1749e6480297c9cf183be17c793d67daf69a5434 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 30 Aug 2023 13:07:57 -0500 Subject: [PATCH] Fix chat css --- judge/views/contests.py | 4 +--- templates/chat/chat_css.html | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/judge/views/contests.py b/judge/views/contests.py index ff4b320..c183435 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -1357,9 +1357,7 @@ class ContestClarificationAjax(ContestMixin, DetailView): raise Http404() polling_time = 1 # minute - last_one_minute = last_five_minutes = timezone.now() - timezone.timedelta( - minutes=polling_time - ) + last_one_minute = timezone.now() - timezone.timedelta(minutes=polling_time) queryset = ContestProblemClarification.objects.filter( problem__in=self.object.contest_problems.all(), date__gte=last_one_minute diff --git a/templates/chat/chat_css.html b/templates/chat/chat_css.html index 5e333bf..ccc2feb 100644 --- a/templates/chat/chat_css.html +++ b/templates/chat/chat_css.html @@ -164,9 +164,10 @@ .info-pic { border-radius: 50%; margin-left: 1em; + width: 3em; } #chat-info { - height: 10%; + height: 3em; } @media (min-width: 800px) { @@ -195,9 +196,6 @@ .active-span { display: none; } - #chat-info { - height: 5%; - } } {% endcompress %} \ No newline at end of file