Use Bootstrap .nav in secondary header navigation

This commit is contained in:
Anton Khorev 2024-05-24 19:41:55 +03:00
parent 2ea256744a
commit 52123336fd
3 changed files with 6 additions and 7 deletions

View file

@ -106,6 +106,7 @@ $(document).ready(function () {
$("body").removeClass("compact-nav");
$("header").removeClass("text-nowrap");
$("header nav.secondary > ul").removeClass("flex-nowrap");
updateHeader();

View file

@ -98,10 +98,6 @@ header {
position: relative;
font-size: 14px;
h1, nav, nav > ul, nav > ul > li {
display: inline-block;
}
> * {
height: 100%;
padding: $lineheight * 0.5;
@ -191,7 +187,7 @@ body.small-nav {
min-height: $headerHeight;
&.closed nav {
display: none;
display: none !important;
}
.search_forms {
@ -216,6 +212,8 @@ body.small-nav {
}
nav.secondary {
flex-direction: column;
.user-menu, .login-menu {
width: 100%;
}

View file

@ -31,8 +31,8 @@
<%= link_to t("layouts.export"), export_path, :class => "btn btn-outline-primary geolink", :id => "export_tab" %>
</div>
</nav>
<nav class='secondary'>
<ul class='mx-1 px-0'>
<nav class='secondary d-flex gap-2 align-items-center'>
<ul class='nav flex-nowrap'>
<% if Settings.status != "database_offline" && can?(:index, Issue) %>
<li class="compact-hide nav-item">
<%= link_to issues_path(:status => "open"), :class => header_nav_link_class(issues_path) do %>