- {{ student.user.first_name }} {{ student.user.last_name }} ({{ student.id }}) + {{ student.user.first_name }} {{ student.user.last_name }} + ID: {{ student.id }} Email: {{ student.user.email }} {% if student.commendations_set.count == "1" %} 1 commendation From 01f9adab8d6aeab0894777514d808735844539f0 Mon Sep 17 00:00:00 2001 From: Matthew Gray <44288823+mmoomocow@users.noreply.github.com> Date: Thu, 18 May 2023 22:08:02 +1200 Subject: [PATCH 10/10] fix(static-files): :iphone: Stop student list going off edge of screen Reduce the minimun grid size in the student list Signed-off-by: Matthew Gray <44288823+mmoomocow@users.noreply.github.com> --- students/static/students/students.css | 2 +- students/static/students/students.min.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/students/static/students/students.css b/students/static/students/students.css index 93ac884..4159327 100644 --- a/students/static/students/students.css +++ b/students/static/students/students.css @@ -1,6 +1,6 @@ .allStudents { display: grid; - grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(250px, 2fr)); } .student { diff --git a/students/static/students/students.min.css b/students/static/students/students.min.css index c93b9c4..93f5125 100644 --- a/students/static/students/students.min.css +++ b/students/static/students/students.min.css @@ -1 +1 @@ -.allStudents{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr))}.student{box-sizing:border-box;padding:1rem;margin:1rem;box-shadow:0 0 10px rgba(67,67,67,.5);border-radius:10px;border:1px solid #ccc;overflow:hidden}.student a{color:#000;text-decoration:underline}form input{box-sizing:border-box;display:block;margin:1rem;padding:.5em;border:1px solid var(--color-grey-dark);border-radius:.25rem;box-shadow:0 .5rem 1rem rgba(0,0,0,.2);width:calc(100% - 2rem)}#SubmitButtons{display:grid;grid-template-columns:repeat(2,1fr)}form #submit{background-color:var(--color-gold);color:var(--color-grey-dark);font-weight:700;cursor:pointer} \ No newline at end of file +.allStudents{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,2fr))}.student{box-sizing:border-box;padding:1rem;margin:1rem;box-shadow:0 0 10px rgba(67,67,67,.5);border-radius:10px;border:1px solid #ccc;overflow:hidden}.student a{color:#000000;text-decoration:underline}form input{box-sizing:border-box;display:block;margin:1rem;padding:.5em;border:1px solid var(--color-grey-dark);border-radius:.25rem;box-shadow:0 .5rem 1rem rgba(0,0,0,.2);width:calc(100% - 2rem)}#SubmitButtons{display:grid;grid-template-columns:repeat(2,1fr)}form #submit{background-color:var(--color-gold);color:var(--color-grey-dark);font-weight:bold;cursor:pointer} \ No newline at end of file