diff --git a/app/assets/stylesheets/gitlab_bootstrap/common.scss b/app/assets/stylesheets/gitlab_bootstrap/common.scss
index cb292bc711fa14123278a3e0bf3590752ebcd97b..dcfd610e2c4f4d0ac816320341013b70322f5d76 100644
--- a/app/assets/stylesheets/gitlab_bootstrap/common.scss
+++ b/app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -20,6 +20,7 @@
 .hint { font-style: italic; color: #999; }
 .light { color: #888 }
 .tiny { font-weight: normal }
+.vtop { vertical-align: top; }
 
 
 /** ALERT MESSAGES **/
diff --git a/app/views/graph/_head.html.haml b/app/views/graph/_head.html.haml
index 7e1b46446af0b8fc590c30f7726e1349fe559f32..fba9a958a191426605884fb2a9dbf834e43382dd 100644
--- a/app/views/graph/_head.html.haml
+++ b/app/views/graph/_head.html.haml
@@ -1,9 +1,16 @@
-%ul.nav.nav-tabs
-  %li
+%h3.page_title Project Network Graph
+%hr
+
+.clearfix
+  .pull-left
     = render partial: 'shared/ref_switcher', locals: {destination: 'graph', path: @path}
-  %li.pull-right.search
-    = form_tag project_graph_path(@project, params[:id]), method: :get, class: 'navbar-form' do |f|
-      = label_tag :search , "Looking for commit:"
-      = text_field_tag :q, @q, placeholder: "Input SHA", class: "search-input"
 
-%h3.page_title Project Network Graph
+  .search.pull-right
+    = form_tag project_graph_path(@project, params[:id]), method: :get do |f|
+      .control-group
+        = label_tag :search , "Looking for commit:", class: 'control-label light'
+        .controls
+          = text_field_tag :q, @q, placeholder: "Input SHA", class: "search-input xlarge"
+          = button_tag type: 'submit', class: 'btn vtop' do
+            %i.icon-search
+