🐛 Fix fills and strokes on inspect code

This commit is contained in:
Alejandro Alonso 2023-01-26 11:23:33 +01:00 committed by Alonso Torres
parent f2033c46f3
commit 71d104f768
2 changed files with 54 additions and 28 deletions

View file

@ -29,7 +29,7 @@
(dom/query js/document "#svg-frame"))
markup-shape
(fn [shape]
(let [selector (str "#shape-" (:id shape) (when (= :text (:type shape)) " .root"))]
(let [selector (str "#shape-" (:id shape))]
(when-let [el (and frame (dom/query frame selector))]
(str
(str/fmt "<!-- %s -->" (:name shape))