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):
return None
def get_queryset(self):
return (
super()
.get_queryset()
.filter(contest_object__organizations=self.organization)
)
def get_context_data(self, **kwargs):
context = super(OrganizationSubmissions, self).get_context_data(**kwargs)
# context["dynamic_update"] = context["page_obj"].number == 1

View file

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

View file

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

View file

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