Skip to content

Commit

Permalink
small fixes for responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Oct 17, 2024
1 parent c79dd66 commit 146c93c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tin/apps/courses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Course(models.Model):
archived = models.BooleanField(default=False)
permission = models.CharField(max_length=1, choices=PERMISSIONS, default="r")

objects: CourseQuerySet = CourseQuerySet.as_manager() # type: ignore[assignment-type]
objects = CourseQuerySet.as_manager()

def __str__(self):
return self.name
Expand Down
10 changes: 10 additions & 0 deletions tin/static/css/choose.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
padding-top: 10px;
}

@media (max-width: 768px) {
.row {
flex-direction: column;
}

.col {
width: 100%;
}
}

.card {
position: relative;
display: flex;
Expand Down
9 changes: 0 additions & 9 deletions tin/templates/assignments/custom_file_action.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{% extends "base.html" %}

{% block head %}
<script type="text/javascript">
$(document).ready(function () {
$("#id_courses").selectize();
});
</script>

{% endblock %}

{% block title %}
{% if not action %}
Create a File Action
Expand Down
1 change: 0 additions & 1 deletion tin/templates/assignments/manage_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ <h4 style="color:red;">{{ file_errors }}</h4>
<h2 style="border-top:1px solid lightgray;padding-top:15px;">File actions</h2>
{% for action in actions %}
<a class="left tin-btn" href="{% url 'assignments:file_action' assignment.id action.id %}">{{ action.name }}</a>
<span style="font-size:18px"><a href="{% url 'assignments:edit_file_action' action.id %}">⚙️</a></span>
{% empty %}
<p class="italic">No actions available</p>
{% endfor %}
Expand Down

0 comments on commit 146c93c

Please sign in to comment.