Makes print checks basically work.

This commit is contained in:
Bryce
2024-03-16 19:50:04 -07:00
parent 5b9c4b7aef
commit a972df1d43
12 changed files with 2134 additions and 1503 deletions

View File

@@ -88,7 +88,7 @@
[:button (update params
:class #(cond-> %
true (str " focus:ring-4 font-bold rounded-lg text-xs p-3 text-center mr-2 inline-flex items-center justify-center"
true (str " focus:ring-4 font-bold rounded-lg text-xs p-3 text-center mr-2 inline-flex items-center relative justify-center"
(bg-colors (:color params) (:disabled params)))
(not (:disabled params))
@@ -102,11 +102,11 @@
(nil? (:color params))
(str " bg-white dark:bg-gray-600 border-gray-300 dark:border-gray-700 text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-100 font-medium border border-gray-300 dark:border-gray-700")))
[:div.htmx-indicator.flex.items-center
[:div.htmx-indicator.flex.items-center.absolute.inset-0.justify-center
(svg/spinner {:class "inline w-4 h-4 text-white"})
(when (not (:minimal-loading? params))
[:div.ml-3 "Loading..."])]
(into [:div.htmx-indicator-hidden.inline-flex.gap-2.items-center.justify-center] children)])
(into [:div.htmx-indicator-invisible.inline-flex.gap-2.items-center.justify-center] children)])
(defn a-button- [params & children]
[:a (-> params