Use fluid containers for all views

This commit is contained in:
Jeremy Stretch 2024-03-19 20:31:00 -04:00
parent 606d1dded3
commit 3af291940e
4 changed files with 6 additions and 7 deletions

View File

@ -73,7 +73,6 @@ class ObjectView(BaseObjectView):
return render(request, self.get_template_name(), { return render(request, self.get_template_name(), {
'object': instance, 'object': instance,
'tab': self.tab, 'tab': self.tab,
'page_width': 'xl',
**self.get_extra_context(request, instance), **self.get_extra_context(request, instance),
}) })

View File

@ -41,7 +41,7 @@ Blocks:
{# Top menu #} {# Top menu #}
<header class="navbar navbar-expand-md d-none d-lg-flex d-print-none"> <header class="navbar navbar-expand-md d-none d-lg-flex d-print-none">
<div class="container-{{ page_width|default:"fluid" }}"> <div class="container-fluid">
{# Nav menu toggle #} {# Nav menu toggle #}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
@ -105,7 +105,7 @@ Blocks:
{# Page body #} {# Page body #}
{% block page %} {% block page %}
<div class="page-body my-1"> <div class="page-body my-1">
<div class="container-{{ page_width|default:"fluid" }} tab-content py-3"> <div class="container-fluid tab-content py-3">
{# Page content #} {# Page content #}
{% block content %}{% endblock %} {% block content %}{% endblock %}
@ -124,7 +124,7 @@ Blocks:
{# Page footer #} {# Page footer #}
<footer class="footer footer-transparent d-print-none py-2"> <footer class="footer footer-transparent d-print-none py-2">
<div class="container-{{ page_width|default:"fluid" }} d-flex justify-content-between align-items-center"> <div class="container-fluid d-flex justify-content-between align-items-center">
{% block footer %} {% block footer %}
{# Footer links #} {# Footer links #}

View File

@ -5,7 +5,7 @@
{{ block.super }} {{ block.super }}
{% block page-header %} {% block page-header %}
<div class="container-{{ page_width|default:"fluid" }} mt-2 d-print-none"> <div class="container-fluid mt-2 d-print-none">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
{# Title #} {# Title #}
@ -29,7 +29,7 @@
{# Tabs #} {# Tabs #}
<div class="page-tabs mt-3"> <div class="page-tabs mt-3">
<div class="container-{{ page_width|default:"fluid" }}"> <div class="container-fluid">
{% block tabs %}{% endblock %} {% block tabs %}{% endblock %}
</div> </div>
</div> </div>

View File

@ -19,7 +19,7 @@ Context:
{% endcomment %} {% endcomment %}
{% block page-header %} {% block page-header %}
<div class="container-{{ page_width|default:"fluid" }}"> <div class="container-fluid">
<div class="d-flex justify-content-between align-items-center mt-2"> <div class="d-flex justify-content-between align-items-center mt-2">
{# Breadcrumbs #} {# Breadcrumbs #}