mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🐛 Hide the drop shadow also hides the shape
This commit is contained in:
parent
91a8386ba4
commit
327331475e
1 changed files with 4 additions and 3 deletions
|
@ -330,9 +330,10 @@
|
||||||
props (cond-> props
|
props (cond-> props
|
||||||
(or
|
(or
|
||||||
;; There are any shadows
|
;; There are any shadows
|
||||||
(and (d/not-empty? (:shadow shape)) (not (cph/frame-shape? shape)))
|
(and (seq (->> (:shadow shape) (remove :hidden))) (not (cph/frame-shape? shape)))
|
||||||
|
|
||||||
;; There are no strokes and a blur
|
;; There are no strokes and a blur
|
||||||
(and (some? (:blur shape)) (not (cph/frame-shape? shape)) (empty? (:strokes shape))))
|
(and (:blur shape) (-> shape :blur :hidden not) (not (cph/frame-shape? shape)) (empty? (:strokes shape))))
|
||||||
(obj/set! "filter" (dm/fmt "url(#filter_%)" render-id)))
|
(obj/set! "filter" (dm/fmt "url(#filter_%)" render-id)))
|
||||||
|
|
||||||
svg-defs (:svg-defs shape {})
|
svg-defs (:svg-defs shape {})
|
||||||
|
@ -415,7 +416,7 @@
|
||||||
stroke-props (-> (obj/new)
|
stroke-props (-> (obj/new)
|
||||||
(obj/set! "id" (dm/fmt "strokes-%" (:id shape)))
|
(obj/set! "id" (dm/fmt "strokes-%" (:id shape)))
|
||||||
(cond->
|
(cond->
|
||||||
(and (some? (:blur shape)) (not (cph/frame-shape? shape)))
|
(and (and (:blur shape) (-> shape :blur :hidden not)) (not (cph/frame-shape? shape)))
|
||||||
(obj/set! "filter" (dm/fmt "url(#filter_blur_%)" render-id))))]
|
(obj/set! "filter" (dm/fmt "url(#filter_blur_%)" render-id))))]
|
||||||
[:*
|
[:*
|
||||||
(when
|
(when
|
||||||
|
|
Loading…
Reference in a new issue