mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05:00
💄 Add some cosmetic adjustements
This commit is contained in:
parent
b20d2badfe
commit
5192b36669
2 changed files with 8 additions and 8 deletions
|
@ -36,11 +36,10 @@
|
|||
;; will be empty on first rendering before drawing the thumbnail and we don't want to store that
|
||||
(let [node (dom/query (dm/fmt "canvas.thumbnail-canvas[data-object-id='%'][data-empty='false']" object-id))]
|
||||
(if (some? node)
|
||||
(-> node
|
||||
(.toBlob (fn [blob]
|
||||
(rx/push! subs blob)
|
||||
(rx/end! subs))
|
||||
"image/png"))
|
||||
(.toBlob node (fn [blob]
|
||||
(rx/push! subs blob)
|
||||
(rx/end! subs))
|
||||
"image/png")
|
||||
|
||||
;; If we cannot find the node we send `nil` and the upsert will delete the thumbnail
|
||||
(do (rx/push! subs nil)
|
||||
|
|
|
@ -45,9 +45,10 @@
|
|||
|
||||
(defn check-props
|
||||
[new-props old-props]
|
||||
(and
|
||||
(= (unchecked-get new-props "thumbnail?") (unchecked-get old-props "thumbnail?"))
|
||||
(= (unchecked-get new-props "shape") (unchecked-get old-props "shape"))))
|
||||
(and (= (unchecked-get new-props "thumbnail?")
|
||||
(unchecked-get old-props "thumbnail?"))
|
||||
(= (unchecked-get new-props "shape")
|
||||
(unchecked-get old-props "shape"))))
|
||||
|
||||
(defn nested-frame-wrapper-factory
|
||||
[shape-wrapper]
|
||||
|
|
Loading…
Add table
Reference in a new issue