mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 19:07:23 +02:00
✨ Properly check text shape on auto edition mode entering.
This commit is contained in:
parent
3040bcd6d4
commit
d170ff8456
1 changed files with 3 additions and 2 deletions
|
@ -468,8 +468,9 @@
|
||||||
(rx/concat
|
(rx/concat
|
||||||
(rx/of (dwc/commit-changes [rchange] [uchange] {:commit-local? true})
|
(rx/of (dwc/commit-changes [rchange] [uchange] {:commit-local? true})
|
||||||
(dws/select-shapes (d/ordered-set id)))
|
(dws/select-shapes (d/ordered-set id)))
|
||||||
(->> (rx/of (start-edition-mode id))
|
(when (= :text (:type attrs))
|
||||||
(rx/observe-on :async)))))))
|
(->> (rx/of (start-edition-mode id))
|
||||||
|
(rx/observe-on :async))))))))
|
||||||
|
|
||||||
(defn- calculate-centered-box
|
(defn- calculate-centered-box
|
||||||
[state aspect-ratio]
|
[state aspect-ratio]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue