Merge pull request #4721 from penpot/alotor-bugfix

🐛 Fix problem moving layout to frame
This commit is contained in:
Belén Albeza 2024-06-11 15:06:08 +02:00 committed by GitHub
commit c6da42ee35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 492 additions and 16 deletions

View file

@ -54,7 +54,7 @@
:name name
:disabled disabled
:value value
:checked checked?}]]))
:default-checked checked?}]]))
(mf/defc radio-buttons
{::mf/props :obj}

View file

@ -96,6 +96,7 @@
(obj/unset! "disable-shadows?")
(obj/set! "ref" ref)
(obj/set! "id" (dm/fmt "shape-%" shape-id))
(obj/set! "data-testid" (:name shape))
;; TODO: This is added for backward compatibility.
(cond-> (and (cfh/text-shape? shape) (empty? (:position-data shape)))

View file

@ -250,7 +250,7 @@
[:& radio-button
{:value "auto"
:icon i/hug-content
:title "Fit content"
:title "Fit content (Horizontal)"
:id "behaviour-h-auto"}])]])
(mf/defc element-behaviour-vertical
@ -288,7 +288,7 @@
{:value "auto"
:icon i/hug-content
:icon-class (stl/css :rotated)
:title "Fit content"
:title "Fit content (Vertical)"
:id "behaviour-v-auto"}])]])
(mf/defc align-self-row