mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 21:08:34 +00:00
🐛 Changes after review
This commit is contained in:
parent
01ca538c72
commit
41948ff86b
@ -392,8 +392,7 @@
|
|||||||
(keys position-data)
|
(keys position-data)
|
||||||
(fn [shape]
|
(fn [shape]
|
||||||
(-> shape
|
(-> shape
|
||||||
(assoc :position-data (get position-data (:id shape))))
|
(assoc :position-data (get position-data (:id shape)))))
|
||||||
)
|
|
||||||
{:save-undo? false :reg-objects? false}))
|
{:save-undo? false :reg-objects? false}))
|
||||||
(rx/of (fn [state]
|
(rx/of (fn [state]
|
||||||
(dissoc state ::update-position-data-debounce ::update-position-data))))))))
|
(dissoc state ::update-position-data-debounce ::update-position-data))))))))
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
(assoc :content (attrs/merge content editor-content)))))
|
(assoc :content (attrs/merge content editor-content)))))
|
||||||
|
|
||||||
(defn- update-text-shape
|
(defn- update-text-shape
|
||||||
[{:keys [grow-type id] :as shape} node]
|
[{:keys [grow-type id]} node]
|
||||||
;; Check if we need to update the size because it's auto-width or auto-height
|
;; Check if we need to update the size because it's auto-width or auto-height
|
||||||
(when (contains? #{:auto-height :auto-width} grow-type)
|
(when (contains? #{:auto-height :auto-width} grow-type)
|
||||||
(let [{:keys [width height]}
|
(let [{:keys [width height]}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user