0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

Merge pull request #4360 from penpot/eva-fix-onboarding-grid

🐛  Fix position of image grid on onboarding
This commit is contained in:
Alejandro 2024-04-05 09:54:21 +02:00 committed by GitHub
commit b2020c8a66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -239,6 +239,7 @@
(let [form (or (unchecked-get props "form")
(mf/use-ctx form-ctx))
name (unchecked-get props "name")
image (unchecked-get props "image")
current-value (or (dm/get-in @form [:data name] "")
(unchecked-get props "value"))
@ -260,7 +261,9 @@
(when (fn? on-change)
(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]
(let [image? (some? image)
icon? (some? icon)

View file

@ -167,6 +167,7 @@
{:label (tr "questions.never-used-one") :area "image6" :value "never-used-a-tool" :icon i/curve}
{:label (tr "questions.other") :value "other" :area "other"}]
:name :experience-design-tool
:image true
:class (stl/css :image-radio)
:on-change on-design-tool-change}]