mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 18:47:19 +02:00
🐛 Fixes scroll and others
This commit is contained in:
parent
6cb2f1663e
commit
83519e8513
3 changed files with 10 additions and 4 deletions
|
@ -25,11 +25,14 @@
|
|||
children (obj/get props "children")
|
||||
render-id (mf/use-memo #(str (uuid/next)))
|
||||
filter-id (str "filter_" render-id)
|
||||
styles (cond-> (obj/new)
|
||||
(:blocked shape) (obj/set! "pointerEvents" "none"))
|
||||
group-props (-> (obj/clone props)
|
||||
(obj/without ["shape" "children"])
|
||||
(obj/set! "id" (str "shape-" (:id shape)))
|
||||
(obj/set! "className" (str "shape " (:type shape)))
|
||||
(obj/set! "filter" (filters/filter-str filter-id shape)))]
|
||||
(obj/set! "filter" (filters/filter-str filter-id shape))
|
||||
(obj/set! "style" styles))]
|
||||
[:& (mf/provider muc/render-ctx) {:value render-id}
|
||||
[:> :g group-props
|
||||
[:defs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue