Explorar o código

remove unnecessary div

Tienson Qin %!s(int64=2) %!d(string=hai) anos
pai
achega
5f282ce3bb
Modificáronse 1 ficheiros con 9 adicións e 11 borrados
  1. 9 11
      src/main/frontend/components/property.cljs

+ 9 - 11
src/main/frontend/components/property.cljs

@@ -461,19 +461,17 @@
                    (empty? class->properties)
                    (not new-property?)
                    (not (:page-configure? opts)))
-      [:div.ls-properties-area
-       [:div
-        (cond->
-         {}
-          (:selected? opts)
-          (assoc :class "select-none"))
-        (properties-section block (if class-schema? properties own-properties) opts)
+      [:div.ls-properties-area (cond->
+                                {}
+                                 (:selected? opts)
+                                 (assoc :class "select-none"))
+       (properties-section block (if class-schema? properties own-properties) opts)
 
-        (when (and (seq full-hidden-properties) (not class-schema?))
-          (hidden-properties block full-hidden-properties opts))
+       (when (and (seq full-hidden-properties) (not class-schema?))
+         (hidden-properties block full-hidden-properties opts))
 
-        (when (or new-property? (not in-block-container?))
-          (new-property block edit-input-id properties new-property? opts))]
+       (when (or new-property? (not in-block-container?))
+         (new-property block edit-input-id properties new-property? opts))
 
        (when (and (seq class->properties) (not one-class?))
          (let [page-cp (:page-cp opts)]