Explorar o código

Remove page properties background for db-based graphs

Tienson Qin hai 1 ano
pai
achega
3700592832
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/main/frontend/components/property.cljs

+ 7 - 1
src/main/frontend/components/property.cljs

@@ -721,7 +721,13 @@
                    (not (:page-configure? opts)))
       [:div.ls-properties-area (cond-> (if in-block-container?
                                          {}
-                                         {:class [(if class-schema? "class-properties" "page-properties")]})
+                                         {:class [(cond
+                                                    class-schema?
+                                                    "class-properties"
+                                                    (config/db-based-graph? (state/get-current-repo))
+                                                    nil
+                                                    :else
+                                                    "page-properties")]})
                                  (:selected? opts)
                                  (update :class conj "select-none"))
        (properties-section block (if class-schema? properties own-properties) opts)