Having a unique issue for which I cannot find a solution. In the navbar of Bootstrap 4, I am attempting to include an image next to one of the items, not the navbar-brand as commonly asked about.
When Bootstrap 4 is loaded with a custom alpha dark theme, the right-aligned dropdown looks like this:
<ul class="navbar-nav">
<li class="dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="https://cdn.discordapp.com/avatars/139412744439988224/a_30a390baf654dfe7f1c336037ea481d4.png?size=32" width="28" height="28" class="d-inline-block align-middle rounded-circle" alt="">
Evie.Codes#4611
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
<h6 class="dropdown-header"><i class="fa fa-user" aria-hidden="true"></i> Evie.Codes</h6>
<a class="dropdown-item" href="/dashboard"><i class="fa fa-cogs" aria-hidden="true"></i> Dashboard</a>
<a class="dropdown-item" href="/admin"><i class="fa fa-key"></i> Admin</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/logout"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a>
</div>
</li>
</ul>
When the image is added, all menu items move slightly upwards except the "brand" part. If the image is removed, everything centers perfectly.
Created a fiddle that demonstrates a similar behavior, although most menu items are centered in the fiddle but not in my environment. https://jsfiddle.net/ffksbv1v/
Current Behavior (red lines for emphasis): https://i.sstatic.net/6LMVl.png