Commit a82ccf56 authored by Joachim Schunk's avatar Joachim Schunk

change general appearance of modal-editor

parent 83ac20cf
......@@ -144,11 +144,10 @@
[ui/modal-panel
{:state (reagent/cursor modal-state-atom [:modal-visible?])
:title [modal-renderers/editor-heading (:symbol-data @modal-state-atom)]
:footer [:div.buttons
[:a.btn.white.black-text
{:on-click (fn []
(swap! modal-state-atom update :modal-visible? not))}
"Schließen"]]}
:footer [:a.button
{:on-click (fn []
(swap! modal-state-atom update :modal-visible? not))}
"Schließen"]}
[:div.content
[modal-editor {:subject exercise
:change-fn change-fn
......
......@@ -174,15 +174,14 @@
[ui/modal-panel
{:state (reagent/cursor modal-state-atom [:modal-visible?])
:title [modal-renderers/editor-heading (:symbol-data @modal-state-atom)]
:footer [:div.buttons
[:a.btn.white.black-text
{:on-click (fn []
(swap! modal-state-atom
assoc :on-close-fn
(partial add-to-selectable-units (conj path :units) selectable-units))
(execute-and-reset (reagent/cursor modal-state-atom [:on-close-fn]) answer)
(swap! modal-state-atom update :modal-visible? not))}
"Schließen"]]
:footer [:a.button
{:on-click (fn []
(swap! modal-state-atom
assoc :on-close-fn
(partial add-to-selectable-units (conj path :units) selectable-units))
(execute-and-reset (reagent/cursor modal-state-atom [:on-close-fn]) answer)
(swap! modal-state-atom update :modal-visible? not))}
"Schließen"]
:subject answer
:on-close-fn (reagent/cursor modal-state-atom [:on-close-fn])}
[:div.content
......
......@@ -15,9 +15,7 @@
[:span sign [:sub subtext]])
(defn editor-heading [{:keys [sign subtext]}]
[:<>
[:h6.center-align [sign-with-subtext {:sign sign :subtext subtext}]]
#_[:div.divider {:style {:margin-bottom "12px"}}]])
[:<> [:span "Größe editieren: "] [sign-with-subtext {:sign sign :subtext subtext}]])
(defn value-renderer [{:keys [phys-val with-oom with-units add-fn]}]
(let [external-units (if (vector? with-units) with-units nil)
......@@ -86,5 +84,4 @@
[:td
[:a.button
{:on-click #(del-fn index is-test?)}
[:span.icon [:i.fas.fa-minus]]]
]])) list)]])]]])
[:span.icon [:i.fas.fa-minus]]]]])) list)]])]]])
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