Skip to content

Commit

Permalink
Fixed broken "Scala 3" sub menu on mobile (#2971)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieken authored Feb 23, 2024
1 parent 38af45a commit ffe5096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/navbar-inner.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li class="navigation-menu-item">
{% capture translatedPageId %}/{{page.language}}{{navItem.url | remove_first: '.html' }}{% endcapture %}
{% assign navItemTranslated = site.documents | where: 'id', translatedPageId | first %}
<a href="{% if navItemTranslated.url %}{{navItemTranslated.url}}{% elsif navItem.url contains '://' or navItem.url == '#' %}{{navItem.url}}{% else %}{{site.baseurl}}{{navItem.url}}{% endif %}" id="{{ navItem.title | downcase | strip }}" {% if page.url contains navItem.url %}class="active"{% endif %}>{{navItem.title}}</a>
<a href="{% if navItemTranslated.url %}{{navItemTranslated.url}}{% elsif navItem.url contains '://' or navItem.url == '#' %}{{navItem.url}}{% else %}{{site.baseurl}}{{navItem.url}}{% endif %}" id="{{ navItem.title | downcase | strip | remove: ' ' }}" {% if page.url contains navItem.url %}class="active"{% endif %}>{{navItem.title}}</a>
{% if navItem.submenu %}
<ul class="navigation-dropdown">
{% for subItem in navItem.submenu %}
Expand All @@ -42,7 +42,7 @@
<nav class="doc-navigation-submenus">
{% for navItem in navdata %}
{% if navItem.submenu %}
<ul class="navigation-submenu" id="{{ navItem.title | downcase | strip }}" style="display: none;">
<ul class="navigation-submenu" id="{{ navItem.title | downcase | strip | remove: ' ' }}" style="display: none;">
{% for subItem in navItem.submenu %}
<li>
<a href="{% if subItem.url contains '://' %}{{subItem.url}}{% else %}{{site.baseurl}}{{subItem.url}}{% endif %}">{{ subItem.title }}</a>
Expand Down

0 comments on commit ffe5096

Please sign in to comment.