From 19da5064c3991990fb18ba1f546be38392b9a148 Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Tue, 7 May 2024 12:42:18 -0700 Subject: [PATCH 1/3] fixed mobile nav non-reachable newsletter button issue --- .../templates/fragments/nav/menu.html | 32 +++++++++++-------- .../templates/fragments/primary_nav.html | 2 +- .../networkapi/templates/pages/base.html | 2 +- source/sass/components/primary-nav.scss | 15 ++++++++- 4 files changed, 34 insertions(+), 17 deletions(-) diff --git a/network-api/networkapi/templates/fragments/nav/menu.html b/network-api/networkapi/templates/fragments/nav/menu.html index 929df7da7de..ffe43028631 100644 --- a/network-api/networkapi/templates/fragments/nav/menu.html +++ b/network-api/networkapi/templates/fragments/nav/menu.html @@ -7,22 +7,26 @@ tw-relative {% endblock menu_container_classes %} -{% block narrow_screen_menu %} - {% fragment as link_hover_padding %}xlarge:tw-p-4{% endfragment %} -
-
- {% for dropdown in menu.dropdowns %} - {% include_block dropdown with style="mobile" link_hover_padding=link_hover_padding %} - {% endfor %} - {% if menu.enable_blog_dropdown %} - {% include "fragments/nav/blog/blog-dropdown.html" with style="mobile" link_hover_padding=link_hover_padding %} - {% endif %} -
-
- +{% block menu_content %} + -{% endblock narrow_screen_menu %} +{% endblock menu_content %} {% block wide_screen_menu %} {% fragment as link_hover_padding %}xlarge:tw-p-4{% endfragment %} diff --git a/network-api/networkapi/templates/fragments/primary_nav.html b/network-api/networkapi/templates/fragments/primary_nav.html index 6429a23d9be..1f662354957 100644 --- a/network-api/networkapi/templates/fragments/primary_nav.html +++ b/network-api/networkapi/templates/fragments/primary_nav.html @@ -6,7 +6,7 @@