Skip to content

Commit

Permalink
feat: set a minimum height for multiple transaction editors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akeboshiwind committed Apr 3, 2024
1 parent 6f86dc3 commit 04c7b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xt_fiddle/client.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
[:<>
(for [[id {:keys [system-time txs]}] tx-batches]
^{:key id}
[:div
[:div {:class "flex flex-col min-h-40"}
[:div {:class "flex flex-row justify-between items-center py-1 px-5 bg-gray-200"}
[:div {:class "w-full flex flex-row gap-2 justify-center items-center"}
(if (nil? system-time)
Expand All @@ -173,7 +173,7 @@
:on-click #(rf/dispatch [::tx-batch/assoc id :system-time nil])}]])]
[:> XMarkIcon {:class "h-5 w-5 cursor-pointer"
:on-click #(rf/dispatch [::tx-batch/delete id])}]]
[editor {:class "border"
[editor {:class "border flex-grow"
:source txs
:change-callback #(rf/dispatch [::tx-batch/assoc id :txs %])}]])])

Expand Down

0 comments on commit 04c7b2b

Please sign in to comment.