Ver código fonte

decorate shape links

Peng Xiao 3 anos atrás
pai
commit
1ea91988a2
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      src/main/frontend/components/block.cljs

+ 4 - 3
src/main/frontend/components/block.cljs

@@ -1803,6 +1803,7 @@
        (if title
        (if title
          (conj
          (conj
           (map-inline config title)
           (map-inline config title)
+          (when (= block-type :whiteboard-shape) [:span.mr-1 (ui/icon "whiteboard-element")])
           (when (and (util/electron?) (not (#{:default :whiteboard-shape} block-type)))
           (when (and (util/electron?) (not (#{:default :whiteboard-shape} block-type)))
             [:a.prefix-link
             [:a.prefix-link
              {:on-click #(case block-type
              {:on-click #(case block-type
@@ -2091,9 +2092,9 @@
           (seq title)
           (seq title)
           (build-block-title config block)
           (build-block-title config block)
 
 
-          (= block-type :whiteboard-shape)
-          [:<> (ui/icon "whiteboard-element")
-           (inline config (first (:block/title block)))]
+          ;; (= block-type :whiteboard-shape)
+          ;; [:<> (ui/icon "whiteboard-element")
+          ;;  (inline config (first (:block/title block)))]
 
 
           :else
           :else
           nil)]
           nil)]