Skip to content

Commit 381346e

Browse files
DraTeotsclaude
andcommitted
Fix navbar layout: move DB selector out of input-group
The database selector was inside the Bootstrap input-group, breaking the layout. Move it to a flex sibling so the select and search fields sit side by side without overlap. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e58a950 commit 381346e

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

python/rcdb/web/templates/layouts/base.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@
7070
</ul>
7171

7272
<!-- Search form -->
73-
<form class="navbar-form navbar-left" role="search" action="{{ url_for('runs.search') }}" method="get">
74-
<div class="input-group input-group-sm" style="min-width: 500px">
75-
{% if g.available_databases %}
76-
<select id="dbSelector" class="form-control" style="width:auto; margin-right:4px;">
77-
{% for name, conn in g.available_databases.items() %}
78-
<option value="{{ name }}" {% if name == g.active_db_name %}selected{% endif %}>{{ name }} ({{ connection_hint(conn) }})</option>
79-
{% endfor %}
80-
</select>
81-
{% endif %}
73+
<form class="navbar-form navbar-left" role="search" action="{{ url_for('runs.search') }}" method="get" style="display:flex; align-items:center; gap:4px;">
74+
{% if g.available_databases %}
75+
<select id="dbSelector" class="form-control input-sm" style="width:auto; flex-shrink:0;">
76+
{% for name, conn in g.available_databases.items() %}
77+
<option value="{{ name }}" {% if name == g.active_db_name %}selected{% endif %}>{{ name }}</option>
78+
{% endfor %}
79+
</select>
80+
{% endif %}
81+
<div class="input-group input-group-sm" style="min-width:400px;">
8282
<input type="text" class="form-control" placeholder="Run or min-max" name="rr" style="width:28%; margin-right:4px;">
83-
<input type="text" class="form-control" placeholder="Query" name="q" style="width:70%; ">
83+
<input type="text" class="form-control" placeholder="Query" name="q" style="width:70%;">
8484
<span class="input-group-btn"><button id="qGoBtn" type="submit" class="btn btn-default">GO</button></span>
85-
<!-- Home -->
85+
<!-- Help -->
8686
<span class="input-group-btn" id="queryQuickHelp">
8787
<a href="https://github.com/JeffersonLab/rcdb/wiki/Web-quick-query" target="_blank" class="btn" data-container="body" data-placement="bottom" type="button">
8888
<span class="glyphicon glyphicon-question-sign"></span>

0 commit comments

Comments
 (0)