Currently, I am using Bootstrap 4 in combination with Rails 5 to create a collapsing navbar. The functionality of the collapse is working properly, but the size of the collapsed navbar seems to be unusually small. You can see the issue in this screenshot: https://i.sstatic.net/HqHHR.png
Comparing my navbar to the example provided on the Bootstrap website (link: https://i.sstatic.net/JGYnR.png), I notice that not only the navbar but also the text size in my project appears smaller. I have not applied any specific CSS for sizing to the navbar, so I am perplexed as to why it is displaying much smaller than the default size.
_navigationbar.html.erb file code:
<nav class="navbar navbar-fixed-top navbar-dark bg-inverse">
<div id="myNavbar">
<button class="navbar-toggler hidden-lg-up" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"></button>
<div class="collapse navbar-toggleable-md" id="navbarResponsive">
<ul class="nav nav-pills navbar-nav" id="nav-colors">
<li class="nav-item"><a class="nav-link" href="#home">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact Us</a></li>
</ul>
</div>
</div>
</nav>
application.html.erb code:
<!DOCTYPE html>
<html>
<head>
<title>League Builders</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= render 'layouts/navigationbar' %>
<div class="container-fluid">
<%= yield %>
</div>
</body>
</html>
If anyone has insights or solutions to this sizing issue, I would greatly appreciate the help. Thank you!