fix: calc css

This commit is contained in:
Tienson Qin
2022-02-10 10:44:51 +08:00
parent 904c3a9114
commit bd3128ab6e
2 changed files with 8 additions and 7 deletions

View File

@@ -294,13 +294,12 @@
(when-not (= mode "calc")
[:div.extensions__code-lang
(string/lower-case mode)]))
[:div.flex.flex-1.flex-row
[:div.w-full
[:textarea (merge {:id id
;; Expose the textarea associated with the CodeMirror instance via
;; ref so that we can autofocus into the CodeMirror instance later.
:ref textarea-ref-name
:default-value code} attr)]]
[:div.flex.flex-1.flex-row.w-full.mt-6.pr-2
[:textarea (merge {:id id
;; Expose the textarea associated with the CodeMirror instance via
;; ref so that we can autofocus into the CodeMirror instance later.
:ref textarea-ref-name
:default-value code} attr)]
(when (= (:data-lang attr) "calc")
(calc/results (:calc-atom state)))]])