Skip to content

Commit

Permalink
Fix off-center modals
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Feb 12, 2025
1 parent a82c030 commit 08a2d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/account/transactions/bulk_edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= turbo_frame_tag "bulk_transaction_edit_drawer" do %>
<dialog data-controller="modal"
data-action="click->modal#clickOutside"
class="bg-white border border-alpha-black-25 rounded-2xl max-h-[calc(100vh-32px)] max-w-[480px] w-full shadow-xs h-full mt-4 mr-4">
class="bg-white border border-alpha-black-25 rounded-2xl max-h-[calc(100vh-32px)] max-w-[480px] w-full shadow-xs h-full mt-4 mr-4 ml-auto">
<%= styled_form_with url: bulk_update_account_transactions_path, scope: "bulk_update", class: "h-full", data: { turbo_frame: "_top" } do |form| %>
<div class="flex h-full flex-col justify-between p-4">
<div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_confirm_modal.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<dialog id="turbo-confirm" class="max-w-[420px] w-full rounded-xl">
<dialog id="turbo-confirm" class="max-w-[420px] w-full rounded-xl m-auto">
<form method="dialog" class="p-4">
<div class="flex flex-col mb-4">
<div class="flex justify-between mb-2 gap-4">
Expand Down

0 comments on commit 08a2d35

Please sign in to comment.