mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 03:13:30 +01:00
fixed navbar not collapsing properly when selecting
This commit is contained in:
parent
697a607d53
commit
54e17968b5
1 changed files with 6 additions and 5 deletions
|
@ -12,15 +12,12 @@
|
|||
<img src="/media/icon.png" width="40" height="40" alt="The Tiny Life logo">
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-content" aria-label="Navbar toggler">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-content"
|
||||
aria-label="Navbar toggler">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbar-content">
|
||||
<script>
|
||||
$(".navbar-collapse a").on("click", () => $(".navbar-collapse").collapse("hide"));
|
||||
</script>
|
||||
|
||||
<div class="navbar-nav mr-auto" id="nav-items">
|
||||
{% if page.nav %}
|
||||
{% include {{ page.nav }} %}
|
||||
|
@ -42,6 +39,10 @@
|
|||
});
|
||||
</script>
|
||||
</span>
|
||||
|
||||
<script>
|
||||
$(".navbar-collapse a").on("click", () => $(".navbar-collapse").collapse("hide"));
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue