From c8a47d98c196174f58c2b099f35a12c9aac099d3 Mon Sep 17 00:00:00 2001 From: Yogesh Thambidurai Date: Sun, 28 Sep 2025 15:21:10 -0400 Subject: [PATCH 1/2] remove discipline and subject list filter from searchbar template Each page on tCF loads a templated subject and discipline filter list, which ends up being ~200kB large. --- tcf_website/templates/search/searchbar.html | 55 --------------------- 1 file changed, 55 deletions(-) diff --git a/tcf_website/templates/search/searchbar.html b/tcf_website/templates/search/searchbar.html index 1851ad5cd..85ad7fd17 100644 --- a/tcf_website/templates/search/searchbar.html +++ b/tcf_website/templates/search/searchbar.html @@ -136,61 +136,6 @@
- - -
-
-
- Subject -
-
- - -
-
- {% for subdept in subdepartments %} -
- - -
- {% endfor %} -
-
- -
-
- Discipline -
-
- - -
-
- {% for discipline in disciplines %} -
- - -
- {% endfor %} -
-
-
From 2d749702c88ccad43b95bbdd08558d1004da5ae3 Mon Sep 17 00:00:00 2001 From: Yogesh Thambidurai Date: Sun, 28 Sep 2025 15:21:10 -0400 Subject: [PATCH 2/2] remove unused CSS classes for searchbar --- tcf_website/static/search/searchbar.css | 45 ------------------------- 1 file changed, 45 deletions(-) diff --git a/tcf_website/static/search/searchbar.css b/tcf_website/static/search/searchbar.css index 759175e12..b67f2e064 100644 --- a/tcf_website/static/search/searchbar.css +++ b/tcf_website/static/search/searchbar.css @@ -202,34 +202,6 @@ pointer-events: none; } -.form-check-subjects, -.form-check-disciplines { - margin-top: 1.2% !important; - align-self: start !important; -} - -.subject-list, -.discipline-list { - max-height: 150px; - overflow-y: auto; - border: 1px solid #cbd5e0; - border-radius: 8px; - padding: 0.75rem; - margin-top: 0.5rem; - background: #fff; - min-height: 200px; -} - -.form-check.subdepartment-label, -.form-check.discipline-label { - display: flex; - justify-content: flex-start; -} - -.discipline-list { - /* removed max-height: 250px; */ -} - .search-container { position: relative; } @@ -266,12 +238,6 @@ font-size: 0.9rem; } -.subject-list, -.discipline-list { - scrollbar-width: thin; - scrollbar-color: #cbd5e0 transparent; -} - .btn-custom { background-color: #d75626; border: 2px solid #d75626; @@ -292,14 +258,3 @@ outline: none !important; border: 2px solid #b4441d; } - -.subject-list::-webkit-scrollbar, -.discipline-list::-webkit-scrollbar { - width: 4px; -} - -.subject-list::-webkit-scrollbar-thumb, -.discipline-list::-webkit-scrollbar-thumb { - background-color: #cbd5e0; - border-radius: 2px; -}