seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.49k stars 996 forks source link

Bug in responsive navbar helper #848

Open neonwired opened 9 years ago

neonwired commented 9 years ago

<%= nav_bar responsive: true %>

should render the container with container-fluid class or the container will have a fixed width.

<div class="navbar">
  <div class="container-fluid">
    <!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <!-- Everything in here gets hidden at 940px or less -->
    <div class="navbar-collapse collapse">
      <!-- menu items gets rendered here instead -->
    </div>
  </div>
</div>
epineda commented 8 years ago

a workaround you can use is:

<%= nav_bar responsive:true, fluid: true %>