I want the 'Go' button to remain next to the search field. It displays correctly on Desktop view, but on mobile view, the submit button wraps (breaking up the input-group). How can I prevent this?
Additionally, Bootstrap is adding gray lines around the form on mobile devices. If anyone knows how to stop this from happening, please let me know.
I attempted to use 'flex-nowrap' from the documentation, but it seems to be for a different version of Bootstrap and didn't work. https://getbootstrap.com/docs/4.3/components/input-group/#wrapping
<body>
{% block navbar %} <!-- Nav Bar -->
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a style="font-size: 20px; padding-top: 16px;" class="navbar-brand" href="{{ url_for('index') }}">My Website</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
{% if base['search_bar'] %}
<div class="navbar-form navbar-left col-lg-6">
<div class="input-group">
<form method="POST" action="{{ url_for('search') }}">
{{ base['search_bar'].hidden_tag() }}
{{ base['search_bar'].search_for(class="form-control", placeholder="Search with Barcode") }}
<span class="input-group-btn">
{{ base['search_bar'].start_search(class="btn btn-primary") }}
</span>
</form>
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
{% endif %}
<div id="main-menu" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_anonymous %}
<li><a href="{{ url_for('login') }}"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
<li><a href="{{ url_for('signup') }}">Register</a></li>
{% else %}
<li><a href="{{ url_for('index') }}"><span class="glyphicon glyphicon-user"></span> {{ current_user.username }}</a></li>
<li><a href="{{ url_for('logout') }}"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>
{% endif %}
</ul>
</div>
</div>
</nav>
{% endblock %} <!-- Nav Bar -->
class SearchBar(FlaskForm):
search_for = StringField('Search', validators=[DataRequired()])
start_search = SubmitField('Go')