0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 Fix position of image grid on onboarding

This commit is contained in:
Eva Marco 2024-04-05 09:25:50 +02:00
parent 3127a020a0
commit ce7f1440fa
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}]