   (let [expanded? (get expanded-paths path)]
     [:div {:style {:display "flex"}}
      (when-not (empty? data)
-       [:div {:style {:flex 0}} [ExpandButton {:expanded? expanded?
+       [:div {:style {:flex "0 1 auto"}} [ExpandButton {:expanded? expanded?
                                                :path path
                                                :emit-fn emit-fn}]])
      [:div {:style {:flex 1}}

(defn MapNode [{:keys [data path expanded-paths emit-fn]}]
  (let [expanded? (get expanded-paths path)]
    [:div {:style {:display "flex"}}
     [:div {:style {:flex 0}}
      [ExpandButton {:expanded? expanded? :path path :emit-fn emit-fn}]]
     [:div {:style {:flex 1}}
      [:span "{"]

  (let [expanded? (get expanded-paths path)]
    [:div {:style {:display "flex"}}
     (when-not (empty? data)
       [:div {:style {:flex "0 1 auto"}}
        [ExpandButton {:expanded? expanded?
                       :path path
                       :emit-fn emit-fn}]])
