       (if (and enable-rotate?
                (= :processing-status/processed (:render-status page)))
         (dom/div #js {:className "thumbnail"
-                      :onMouseEnter (fn [e] (om/set-state! owner :overlay? true))
+                      :onMouseEnter (fn [e]
+                                      (when (>= (.-width (style/getSize (om/get-node owner)))
+                                                +min-rotate-width+)
+                                        (om/set-state! owner :overlay? true)))
                       :onMouseLeave (fn [e] (om/set-state! owner :overlay? false))}
                  (when overlay?
                    (om/build rotate-buttons page))

            [om.dom :as dom]
            [pepa.data :as data]
            [pepa.api :as api]
            [sablono.core :refer-macros [html]]))

(defn ^:private rotate [deg]
  (let [t (str "rotate(" deg "deg)")]

                   :style (rotate (:rotation page))
                   :className (when-not rendered?
                                "pending")}))))

(def +min-rotate-width+ 100)

(defn ^:private rotate-clicked [page rotation e]
  (println "rotating" page "to" rotation "degrees")
