From 796b1e25c18040a0b994e4e771e5e2ad8ec7669c Mon Sep 17 00:00:00 2001 From: Bryce Date: Wed, 10 Apr 2024 14:57:57 -0700 Subject: [PATCH] makes account size correctly --- src/clj/auto_ap/ssr/admin/accounts.clj | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/clj/auto_ap/ssr/admin/accounts.clj b/src/clj/auto_ap/ssr/admin/accounts.clj index 4f492067..c903e60a 100644 --- a/src/clj/auto_ap/ssr/admin/accounts.clj +++ b/src/clj/auto_ap/ssr/admin/accounts.clj @@ -266,21 +266,20 @@ [:div {:x-data (hx/json {"accountName" (or (:account/name form-params) (:account/numeric-code entity)) "accountCode" (or (:account/numeric-code form-params) (:account/numeric-code entity) )}) :hx-target "this" - :class "w-full h-full"} + } (com/modal - {} + {} [:form (-> {:hx-ext "response-targets" :hx-swap "outerHTML swap:300ms" - :hx-target-400 "#form-errors .error-content" - :class "h-full"} + :hx-target-400 "#form-errors .error-content" } (assoc (if (:db/id entity) :hx-put :hx-post) (str (bidi/path-for ssr-routes/only-routes :admin-transaction-rule-edit-save)))) - [:fieldset {:class "hx-disable h-full"} + [:fieldset {:class "hx-disable"} (com/modal-card - {} + {:class "md:h-[600px]"} [:div.flex [:div.p-2 "Account"] [:p.ml-2.rounded.bg-gray-200.p-2.dark:bg-gray-600 [:span {:x-text "accountCode"}] " - "