[15-min fix] Show the navigation options regardless of screen size (#14313)

* Show the navigation options regardless of screen size

* Add link back to forem homepage for small screens

* Fix link URL + add small padding

* Remove padding class
This commit is contained in:
Fernando Valverde 2021-07-23 14:25:00 -06:00 committed by GitHub
parent 7a48708156
commit 1826e50564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@
<div class="crayons-layout crayons-layout--2-cols">
<div class="admin__left-sidebar crayons-layout__left-sidebar" data-controller="sidebar" data-action="load@window->sidebar#disableCurrentNavItem">
<nav class="hidden m:block">
<nav>
<ul>
<li>
<a class="crayons-link crayons-link--block <%= "crayons-link--current" if controller.controller_name == "overview" %>" href="<%= admin_path %>" aria-current "<%= "page" if controller.controller_name == "overview" %>">
@ -61,6 +61,12 @@
</a>
</li>
<%= render "admin/shared/nested_sidebar", menu_items: AdminMenu.navigation_items %>
<li class="block s:hidden">
<a class="crayons-link crayons-link--block" href="/">
<%= inline_svg_tag("website.svg", aria: true, class: "dropdown-icon crayons-icon") %>
Go to <%= community_name %> home page
</a>
</li>
</ul>
</nav>
</div>