From 026350f9d4920bd21f38c1da0cdda234f4b1dc0c Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 18 May 2026 11:16:20 +0100 Subject: [PATCH] feat(templates): Add content container class for improved layout consistency --- atlas/templates/atlas/case_view.html | 1 + atlas/templates/atlas/collection_view.html | 1 + atlas/templates/atlas/resource_list.html | 1 + atlas/templates/atlas/schema_table_view.html | 1 + atlas/templates/atlas/series_view.html | 1 + atlas/templates/atlas/task_overview.html | 2 ++ .../templates/atlas/uploads_hash_search.html | 2 ++ atlas/templates/atlas/view.html | 1 + generic/templates/generic/cid_view.html | 1 + generic/templates/generic/user_view.html | 1 + templates/base.html | 19 +++++++++++++------ templates/question_table_view.html | 2 ++ 12 files changed, 27 insertions(+), 6 deletions(-) diff --git a/atlas/templates/atlas/case_view.html b/atlas/templates/atlas/case_view.html index 73faf58b..7352ce85 100755 --- a/atlas/templates/atlas/case_view.html +++ b/atlas/templates/atlas/case_view.html @@ -1,6 +1,7 @@ {% extends 'atlas/base.html' %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block css %} {% endblock %} diff --git a/atlas/templates/atlas/collection_view.html b/atlas/templates/atlas/collection_view.html index ae5116cb..55be8928 100644 --- a/atlas/templates/atlas/collection_view.html +++ b/atlas/templates/atlas/collection_view.html @@ -1,6 +1,7 @@ {% extends 'atlas/base.html' %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block content %} diff --git a/atlas/templates/atlas/resource_list.html b/atlas/templates/atlas/resource_list.html index 59f0fc08..a520be24 100755 --- a/atlas/templates/atlas/resource_list.html +++ b/atlas/templates/atlas/resource_list.html @@ -1,5 +1,6 @@ {% extends 'atlas/base.html' %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block content %}

Resources

diff --git a/atlas/templates/atlas/schema_table_view.html b/atlas/templates/atlas/schema_table_view.html index 65d872ca..6a782c85 100755 --- a/atlas/templates/atlas/schema_table_view.html +++ b/atlas/templates/atlas/schema_table_view.html @@ -1,6 +1,7 @@ {% extends 'atlas/base.html' %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block css %} {% endblock %} diff --git a/atlas/templates/atlas/series_view.html b/atlas/templates/atlas/series_view.html index 87c150ca..cbd5eb12 100755 --- a/atlas/templates/atlas/series_view.html +++ b/atlas/templates/atlas/series_view.html @@ -1,6 +1,7 @@ {% extends 'atlas/base.html' %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block content %} diff --git a/atlas/templates/atlas/task_overview.html b/atlas/templates/atlas/task_overview.html index ac40d225..54e1a6c9 100644 --- a/atlas/templates/atlas/task_overview.html +++ b/atlas/templates/atlas/task_overview.html @@ -2,6 +2,8 @@ {% load static %} {% load django_htmx %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} + {% block title %} Atlas Task Overview {% endblock title %} diff --git a/atlas/templates/atlas/uploads_hash_search.html b/atlas/templates/atlas/uploads_hash_search.html index 603d469f..38834be4 100644 --- a/atlas/templates/atlas/uploads_hash_search.html +++ b/atlas/templates/atlas/uploads_hash_search.html @@ -1,5 +1,7 @@ {% extends 'atlas/base.html' %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} + {% block content %}

Search Uploaded And Imported DICOMs

Admin-only tool for searching pending uploads and imported Atlas data by hash, series UID, or study UID.

diff --git a/atlas/templates/atlas/view.html b/atlas/templates/atlas/view.html index 35ce4933..6a89e61d 100755 --- a/atlas/templates/atlas/view.html +++ b/atlas/templates/atlas/view.html @@ -1,6 +1,7 @@ {% extends 'atlas/base.html' %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block css %} {% endblock %} diff --git a/generic/templates/generic/cid_view.html b/generic/templates/generic/cid_view.html index 6fc22bb3..7a9d7785 100644 --- a/generic/templates/generic/cid_view.html +++ b/generic/templates/generic/cid_view.html @@ -2,6 +2,7 @@ {% load crispy_forms_tags %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block css %} {% endblock %} diff --git a/generic/templates/generic/user_view.html b/generic/templates/generic/user_view.html index 6819f31c..1465c7b1 100644 --- a/generic/templates/generic/user_view.html +++ b/generic/templates/generic/user_view.html @@ -2,6 +2,7 @@ {% load crispy_forms_tags %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block css %} {% endblock %} diff --git a/templates/base.html b/templates/base.html index 4ef055ba..650371cb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -127,8 +127,16 @@ max-width: 100%; } - div.content.container { - max-width: 100%; + .content.content-read { + max-width: 1280px; + margin-left: auto; + margin-right: auto; + } + + .content.content-wide { + max-width: min(98vw, 2200px); + margin-left: auto; + margin-right: auto; } @media (max-width: 1210px) { @@ -138,10 +146,9 @@ padding-right: .5rem !important; } - div.content.container { + .content { padding-left: .5rem !important; padding-right: .5rem !important; - max-width: 100% !important; } } @@ -152,7 +159,7 @@ padding-right: .75rem !important; } - div.content.container { + .content { padding-left: .75rem !important; padding-right: .75rem !important; } @@ -358,7 +365,7 @@ -
+
{% block navigation %} {% endblock %}
diff --git a/templates/question_table_view.html b/templates/question_table_view.html index ec6fdaea..c6ce471c 100644 --- a/templates/question_table_view.html +++ b/templates/question_table_view.html @@ -3,6 +3,8 @@ {% load crispy_forms_tags %} {% load render_table from django_tables2 %} +{% block content_container_class %}container-fluid content-wide px-3{% endblock %} + {% block content %}