Fix some css

This commit is contained in:
cuom1999 2023-07-07 00:54:52 +07:00
parent 1ca0d51f67
commit 0b27c9da23
4 changed files with 10 additions and 20 deletions

View file

@ -450,13 +450,6 @@ class OrganizationSubmissions(
def contest(self): def contest(self):
return None return None
def get_queryset(self):
return (
super()
.get_queryset()
.filter(contest_object__organizations=self.organization)
)
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(OrganizationSubmissions, self).get_context_data(**kwargs) context = super(OrganizationSubmissions, self).get_context_data(**kwargs)
# context["dynamic_update"] = context["page_obj"].number == 1 # context["dynamic_update"] = context["page_obj"].number == 1

View file

@ -67,14 +67,15 @@
<div class="right-sidebar"> <div class="right-sidebar">
{% if request.in_contest_mode and request.participation.contest.use_clarifications %} {% if request.in_contest_mode and request.participation.contest.use_clarifications %}
<div class="blog-sidebox sidebox"> <div class="blog-sidebox sidebox">
<h3>{{ _('Clarifications') }} <h3>
<i class="fa fa-question-circle"></i> <i class="fa fa-question-circle"></i>
{{ _('Clarifications') }}
{% if can_edit_contest %} {% if can_edit_contest %}
<a href="{{url('new_contest_clarification', request.participation.contest.key)}}" <a href="{{url('new_contest_clarification', request.participation.contest.key)}}"
class="fa fa-plus-circle" class="fa fa-plus-circle"
id="add-clarification" id="add-clarification"
title="{{_('Add')}}" title="{{_('Add')}}"
style="color: lightcyan"> style="color: lightcyan; margin-left: auto;">
</a> </a>
{% endif %} {% endif %}
</h3> </h3>

View file

@ -46,7 +46,7 @@
<style> <style>
@media(min-width: 800px) { @media(min-width: 800px) {
.middle-content { .middle-content {
max-width: 80%; max-width: 90%;
} }
} }
</style> </style>

View file

@ -5,24 +5,20 @@
{% block media %} {% block media %}
<style> <style>
@media(min-width: 800px) { #content {
#content { width: 100%;
width: 98%; margin-left: 0;
margin-left: 0; }
}
@media(min-width: 800px) {
.middle-right-content { .middle-right-content {
margin-left: 13%; margin-left: 13%;
display: flex; display: flex;
margin-right: 2%;
} }
} }
@media(max-width: 799px) { @media(max-width: 799px) {
#content {
width: 100%;
margin-left: 0;
}
.middle-right-content { .middle-right-content {
display: block; display: block;
} }