 
 (defcomponent select-deployment [{:keys [deployments deployment]} owner]
   (render [_] 
-          (dom/div
-            (b/toolbar {}
-                       (apply (partial b/dropdown {:bs-style "primary" 
-                                                   :style {:width left-bar-width}
-                                                   :title (or (:id deployment) "Deployments")})
-                              (for [[id info] (reverse (sort-by (comp :created-at val) 
-                                                                deployments))]
-                                (b/menu-item {:key id
-                                              :on-select (fn [_] 
-                                                           ;(stop-tracking! id)
-                                                           (start-tracking! id))} 
-                                             id)))))))
+          (b/toolbar {:style {:width "100%"}}
+                     (apply (partial b/dropdown {:bs-style "primary" 
+                                                 :style {:width "100%"}
+                                                 :title (or (:id deployment) "Select Deployment")})
+                            (for [[id info] (reverse (sort-by (comp :created-at val) 
+                                                              deployments))]
+                              (b/menu-item {:key id
+                                            :on-select (fn [_] 
+                                                         ;(stop-tracking! id)
+                                                         (start-tracking! id))} 
+                                           id))))))
 
 (defn is-job-entry? [job-id entry]
   (if-let [entry-job-id (if (= (:fn entry) :submit-job)

            (if-let [job (and selected-job jobs (jobs selected-job))]
              (dom/div
               (p/panel
                {:header (om/build section-header {:text "Catalog" 
                                          :visible (:job visible) 
                                          :type :job} {})}
                (if (:job visible)
                  (om/build clojure-block {:input (:pretty-catalog job)})))


                          (recur)))))

  (render-state [_ {:keys [api-chan]}]
                #_(dom/div
                  {:class "grids-examples"}
                  (g/grid {}
                          (g/row {:class "show-grid"}
                                 (g/col {:xs 12 :md 8}
                                        (dom/div {} "Who (g/col {:xs 12 :md 8})"))
                                 (g/col {:xs 6 :md 4}
                                        (dom/div {} "What (g/col {:xs 6 :md 4})")))))
                (dom/div {:class "grids-examples"} ;(r/page-header {} "Onyx Dashboard")
                         (g/grid {}
                                 (g/row {}
                                        (g/col {:xs 6 :md 4}
                                               (dom/div {:class "left-nav-deployment"} 
                                                        (om/build select-deployment app {}))
                                               (dom/div {} 
                                                        (om/build job-selector deployment {})))
                                        (g/col {:xs 12 :md 8 :md-push 1 }
                                               (dom/div (om/build job-info {:deployment deployment
                                                                            :visible visible} {})
                                                        (om/build log-entries-table {:entries (deployment->latest-log-entries deployment)
                                                                                     :visible (:log-entries visible)} {}))))))))

(defn main []
  (om/root
