When my browser is in fullscreen, the navbar displays properly. However, resizing the browser causes some issues. I have attached images and I am seeking guidance on how to keep the search buttons inline even when resizing.
.btn-padding {
margin-right: 10px;
margin-left: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
<nav class="navbar navbar-expand-md navbar-dark navcolor">
<div class="navbar-collapse collapse w-100 order-1 order-md-0 dual-collapse2">
<ul class="navbar-nav mr-auto">
<li className="nav-item btn-padding-40"></li>
<li className="nav-item btn-padding-40">
</li>
<li className="nav-item btn-padding-45">
<a className="nav-link page-title">SPRINTS</a>
</li>
<li class="nav-item">
<select value={this.state.value} onChange={this.handleChange} className="custom-select form-control btn-padding droppadding">
{optionItems}
</select>
</li>
</ul>
</div>
<div class="mx-auto order-0">
<a class="navbar-brand mx-auto" href="#"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".dual-collapse2">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="navbar-collapse collapse w-100 order-3 dual-collapse2">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<form class="form-inline">
<input id="SearchTxt2" className="form-control btn-padding" type="text" placeholder="Sprint ID"></input>
<button className="btn btn-primary btn-padding" onClick={(e) => this.handleSubmit2(e)} type="submit">Search</button>
</form>
</li>
<li class="nav-item">
<form class="form-inline">
<input id="SearchTxt"class="form-control btn-padding" type="text" placeholder="Issue ID"></input>
<button class="btn btn-primary btn-padding" type="submit" onClick={(e) => this.handleSubmit(e)} >Search</button>
</form>
</li>
</ul>
</div>
</nav>
Full screen: The display is as expected.
https://i.sstatic.net/lPo0m.png
Half-Screen: Buttons move under the inputs instead of staying inline.
https://i.sstatic.net/FSu8K.png
Collapse: Similar issue occurs in collapsed view, buttons go under the inputs.