Browse Source

fix: don't hide block add button if there's no children when editing

Tienson Qin 3 months ago
parent
commit
73056b465e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/components/page.cljs

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

@@ -107,7 +107,7 @@
         has-children? (:block/_parent block)
         page? (ldb/page? block)
         opacity-class (cond
-                        editing? "opacity-0"
+                        (and editing? has-children?) "opacity-0"
                         (util/mobile?) "opacity-50"
                         has-children? "opacity-0"
                         :else "opacity-50")