mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 03:21:39 +02:00
🐛 Fix problem moving layout to frame
This commit is contained in:
parent
c15c3b14ee
commit
d48e486668
8 changed files with 492 additions and 15 deletions
|
@ -54,7 +54,7 @@
|
|||
:name name
|
||||
:disabled disabled
|
||||
:value value
|
||||
:checked checked?}]]))
|
||||
:default-checked checked?}]]))
|
||||
|
||||
(mf/defc radio-buttons
|
||||
{::mf/props :obj}
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue