mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 20:39:09 -05:00
🐛 Size presets landscape doesn't work well
This commit is contained in:
parent
8d6791105a
commit
2944860696
1 changed files with 3 additions and 2 deletions
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
(mf/defc radio-buttons
|
(mf/defc radio-buttons
|
||||||
{::mf/props :obj}
|
{::mf/props :obj}
|
||||||
[{:keys [children on-change selected class wide encode-fn decode-fn allow-empty] :as props}]
|
[{:keys [name children on-change selected class wide encode-fn decode-fn allow-empty] :as props}]
|
||||||
(let [encode-fn (d/nilv encode-fn identity)
|
(let [encode-fn (d/nilv encode-fn identity)
|
||||||
decode-fn (d/nilv decode-fn identity)
|
decode-fn (d/nilv decode-fn identity)
|
||||||
nitems (if (array? children)
|
nitems (if (array? children)
|
||||||
|
@ -94,5 +94,6 @@
|
||||||
|
|
||||||
[:& (mf/provider context) {:value context-value}
|
[:& (mf/provider context) {:value context-value}
|
||||||
[:div {:class (dm/str class " " (stl/css :radio-btn-wrapper))
|
[:div {:class (dm/str class " " (stl/css :radio-btn-wrapper))
|
||||||
:style {:width width}}
|
:style {:width width}
|
||||||
|
:key (dm/str name "-" selected)}
|
||||||
children]]))
|
children]]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue