Skip to content

Commit

Permalink
Fixed issue with navbar not expanding on smaller devices
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilhau committed Nov 21, 2017
1 parent 43417d4 commit 013b3e9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 2 additions & 0 deletions client/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ff0000">

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"></script>
</head>
3 changes: 3 additions & 0 deletions imports/startup/client/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ import "/imports/ui/helpers/handlebars-lists.js"

// Notifications
import "/imports/modules/notifier.js"

// Bootstrap
import "bootstrap"
10 changes: 6 additions & 4 deletions imports/ui/shared/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item {{isActiveRoute 'frontpage'}}">
<a class="nav-link" href="{{pathFor 'frontpage'}}">Home <span class="sr-only">(current)</span></a>
<a class="nav-link" href="{{pathFor 'frontpage'}}">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item {{isActiveRoute 'documentsIndex'}}">
<a class="nav-link" href="{{pathFor 'documentsIndex'}}">Documents</a>
</li>
</ul>

<ul class="navbar-nav float-right">
<ul class="navbar-nav">
<li class="nav-item {{isActiveRoute 'about'}}">
<a class="nav-link" href="{{pathFor 'about'}}">About</a>
</li>
Expand Down
6 changes: 5 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dependencies": {
"babel-runtime": "^6.26.0",
"bootstrap": "^4.0.0-beta.2",
"jquery": "^3.2.1",
"meteor-node-stubs": "^0.2.11",
"moment": "^2.19.2",
"noty": "^3.1.3",
Expand Down

0 comments on commit 013b3e9

Please sign in to comment.