Commit 4ca89cc6 authored by Bruno Burke's avatar Bruno Burke 😁

fix label and size of difficulty meta info in exercise-editor

parent b634c065
Pipeline #45483 passed with stages
in 1 minute and 42 seconds
......@@ -25,13 +25,14 @@
[:div.range-field
[:span (when difficulty
[:a {:on-click #(swap! metadata dissoc :difficulty)} "(zurücksetzen)"])]
[ui/input-range
{:min 0
:max 100
:step 10
:label "Schwierigkeitsgrad"
:value (get-in @metadata [:difficulty])
:on-change #(swap! metadata assoc :difficulty %)}]]]]))}))
[ui/field {:label "Schwierigkeitsgrad"}
[ui/input-range
{:min 0
:max 100
:step 10
:expanded? true
:value (get-in @metadata [:difficulty])
:on-change #(swap! metadata assoc :difficulty %)}]]]]]))}))
(defn exercise-preview [exercise answer]
(let [result (reagent/atom nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment