0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix glitch when dragging a file thumbnail in the dashboard

This commit is contained in:
Andrés Moya 2021-03-26 14:22:33 +01:00 committed by Alonso Torres
parent 47c58df2a4
commit 7c21624e09
2 changed files with 3 additions and 2 deletions

View file

@ -95,7 +95,8 @@
{::mf/wrap-props false
::mf/forward-ref true}
[props ref]
(let [{:keys [id x y width height content grow-type] :as shape} (obj/get props "shape")
(let [{:keys [id x y width height content] :as shape} (obj/get props "shape")
grow-type (obj/get props "grow-type") ;; This is only needed in workspace
embed-fonts? (mf/use-ctx muc/embed-ctx)
;; We add 8px to add a padding for the exporter
;; width (+ width 8)

View file

@ -101,7 +101,7 @@
(.observe observer paragraph-node)
#(.disconnect observer)))))
[:& text/text-shape {:ref text-ref-cb :shape shape}]))
[:& text/text-shape {:ref text-ref-cb :shape shape :grow-type (:grow-type shape)}]))
(mf/defc text-wrapper
{::mf/wrap-props false}