Fixed bugs with sidenav

This commit is contained in:
alexjanousekGSA
2025-01-10 16:06:55 -04:00
parent 168d93a170
commit 817477bd72
4 changed files with 47 additions and 29 deletions

View File

@@ -50,7 +50,7 @@
{% block maincolumn_content %}
<div class="grid-row">
{% if navigation_links %}
<div class="tablet:grid-col-2 margin-bottom-4">
<div class="tablet:grid-col-3 margin-bottom-4">
<nav class="nav">
<ul class="usa-sidenav">
{% for item in navigation_links %}
@@ -80,9 +80,9 @@
</nav>
</div>
<div class="tablet:grid-col-10 tablet:padding-left-4 usa-prose site-prose">
<div class="tablet:grid-col-9 tablet:padding-left-4 usa-prose site-prose">
{% else %}
<div class="tablet:grid-col-10">
<div class="tablet:grid-col-9">
{% endif %}
{% block content_column_content %}{% endblock %}
</div>

View File

@@ -39,7 +39,7 @@
{% if FEATURE_ABOUT_PAGE_ENABLED %}
{% set navigation = navigation + [
{"href": url_for('main.about_notify'), "text": "About Notify", "active": request.path == '/about'},
{"href": url_for('main.about_notify'), "text": "About Notify", "active": request.path.startswith('/about')},
{"href": url_for('main.join_notify'), "text": "Join Notify", "active": request.path == '/join-notify'},
{"href": url_for('main.contact'), "text": "Contact us", "active": request.path == '/contact'}
] %}