Use Bootstrap .nav in secondary header navigation
This commit is contained in:
parent
2ea256744a
commit
52123336fd
3 changed files with 6 additions and 7 deletions
|
@ -106,6 +106,7 @@ $(document).ready(function () {
|
|||
$("body").removeClass("compact-nav");
|
||||
|
||||
$("header").removeClass("text-nowrap");
|
||||
$("header nav.secondary > ul").removeClass("flex-nowrap");
|
||||
|
||||
updateHeader();
|
||||
|
||||
|
|
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue