Commit b39b6732 authored by Joachim Schunk's avatar Joachim Schunk

use Bulma for renderers

parent 4c08b886
Pipeline #45389 passed with stages
in 1 minute and 35 seconds
......@@ -42,16 +42,19 @@
(defn number-renderer [{:keys [phys-val]}]
(let [latex-str (build-number-latex-string (:number phys-val))]
[:div.row
[:div.col.s11.valign-wrapper
[:span.icon [:i.fas.fa-arrow-right]]
[latex-span latex-str]]]))
[:div.columns.mb-3
[:div.column.is-full
[:span.icon.mr-3 [:i.fas.fa-arrow-right]]
(if (not-empty latex-str) [latex-span latex-str]
[:span.has-text-grey "Kein gültiger Wert angegeben ..."])]]))
(defn units-renderer [phys-val]
[:div.row
[:div.col.s12.valign-wrapper
[:span.icon [:i.fas.fa-arrow-right]]
[latex-span (build-units-latex-string (:units phys-val))]]])
(let [latex-str (build-units-latex-string (:units phys-val))]
[:div.columns.mb-3
[:div.column.is-full
[:span.icon.mr-3 [:i.fas.fa-arrow-right]]
(if (not-empty latex-str) [latex-span latex-str]
[:span.has-text-grey "Keine Einheit angegeben ..."])]]))
(defn list-renderer [{:keys [list units test-number with-oom with-units del-fn set-test-fn]}]
[:<>
......
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