mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 23:46:11 +02:00
🐛 Fix position of image grid on onboarding
This commit is contained in:
parent
3127a020a0
commit
ce7f1440fa
2 changed files with 5 additions and 1 deletions
|
@ -239,6 +239,7 @@
|
||||||
(let [form (or (unchecked-get props "form")
|
(let [form (or (unchecked-get props "form")
|
||||||
(mf/use-ctx form-ctx))
|
(mf/use-ctx form-ctx))
|
||||||
name (unchecked-get props "name")
|
name (unchecked-get props "name")
|
||||||
|
image (unchecked-get props "image")
|
||||||
|
|
||||||
current-value (or (dm/get-in @form [:data name] "")
|
current-value (or (dm/get-in @form [:data name] "")
|
||||||
(unchecked-get props "value"))
|
(unchecked-get props "value"))
|
||||||
|
@ -260,7 +261,9 @@
|
||||||
|
|
||||||
(when (fn? on-change)
|
(when (fn? on-change)
|
||||||
(on-change name value)))))]
|
(on-change name value)))))]
|
||||||
[:div {:class (dm/str class " " (stl/css :custom-radio))}
|
[:div {:class (if image
|
||||||
|
class
|
||||||
|
(dm/str class " " (stl/css :custom-radio)))}
|
||||||
(for [{:keys [image icon value label area]} options]
|
(for [{:keys [image icon value label area]} options]
|
||||||
(let [image? (some? image)
|
(let [image? (some? image)
|
||||||
icon? (some? icon)
|
icon? (some? icon)
|
||||||
|
|
|
@ -167,6 +167,7 @@
|
||||||
{:label (tr "questions.never-used-one") :area "image6" :value "never-used-a-tool" :icon i/curve}
|
{:label (tr "questions.never-used-one") :area "image6" :value "never-used-a-tool" :icon i/curve}
|
||||||
{:label (tr "questions.other") :value "other" :area "other"}]
|
{:label (tr "questions.other") :value "other" :area "other"}]
|
||||||
:name :experience-design-tool
|
:name :experience-design-tool
|
||||||
|
:image true
|
||||||
:class (stl/css :image-radio)
|
:class (stl/css :image-radio)
|
||||||
:on-change on-design-tool-change}]
|
:on-change on-design-tool-change}]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue