Explorar o código

fix(mobile): block control not displayed initially when collapsed

Tienson Qin hai 3 meses
pai
achega
d2827edcfa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/components/block.cljs

+ 1 - 1
src/main/frontend/components/block.cljs

@@ -2237,7 +2237,7 @@
                      (when (and (state/developer-mode?) (.-metaKey event))
                      (when (and (state/developer-mode?) (.-metaKey event))
                        (js/console.debug "[block config]==" config)))}
                        (js/console.debug "[block config]==" config)))}
         [:span {:class (if (or (and control-show? (or collapsed? collapsable?))
         [:span {:class (if (or (and control-show? (or collapsed? collapsable?))
-                               (and collapsed? (or page-title? order-list? config/publishing?)))
+                               (and collapsed? (or page-title? order-list? config/publishing? (util/mobile?))))
                          "control-show cursor-pointer"
                          "control-show cursor-pointer"
                          "control-hide")}
                          "control-hide")}
          (ui/rotating-arrow collapsed?)]])
          (ui/rotating-arrow collapsed?)]])