mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
🐛 Fix strokes class
This commit is contained in:
parent
667fabbdc5
commit
427e43585c
1 changed files with 2 additions and 1 deletions
|
@ -431,6 +431,7 @@
|
|||
stroke-id (dm/fmt "strokes-%" (:id shape))
|
||||
stroke-props (-> (obj/create)
|
||||
(obj/set! "id" stroke-id)
|
||||
(obj/set! "class" "strokes")
|
||||
(cond->
|
||||
;; There is a blur
|
||||
(and (:blur shape) (not (cph/frame-shape? shape)) (-> shape :blur :hidden not))
|
||||
|
@ -442,7 +443,7 @@
|
|||
[:*
|
||||
(when
|
||||
(d/not-empty? (:strokes shape))
|
||||
[:> :g.strokes stroke-props
|
||||
[:> :g stroke-props
|
||||
(for [[index value] (-> (d/enumerate (:strokes shape)) reverse)]
|
||||
(let [props (build-stroke-props index child value render-id)
|
||||
shape (assoc value :points (:points shape))]
|
||||
|
|
Loading…
Reference in a new issue