mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.3 KiB
23 lines
1.3 KiB
<turbo-frame id="drawer">
|
|
<turbo-modal class="modal modal-open items-start !animate-none justify-end overflow-y-auto !justify-normal md:!justify-end" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
|
<div class="absolute top-0 bottom-0 right-0 left-0" data-action="click:turbo-modal#close"></div>
|
|
<div class="bg-base-100 min-h-screen max-h-screen relative w-full relative overflow-y-auto">
|
|
<% if local_assigns[:title] %>
|
|
<div class="flex justify-between bg-base-100 py-2 px-4 items-center border-b pb-2 font-medium">
|
|
<span>
|
|
<%= local_assigns[:title] %>
|
|
</span>
|
|
<a href="#" class="text-xl" data-action="click:turbo-modal#close">×</a>
|
|
</div>
|
|
<% else %>
|
|
<span data-action="click:turbo-modal#close" class="absolute btn border border-base-100 bg-base-100 hover:bg-base-300 hover:border-base-300 btn-primary !text-base btn-sm btn-circle" style="left: -40px; top: 6px">
|
|
×
|
|
</span>
|
|
<% end %>
|
|
<div class="w-full md:w-[620px] overflow-y-auto" style="max-height: calc(100vh - <%= local_assigns[:title] ? '45px' : '0px' %>)">
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</turbo-modal>
|
|
</turbo-frame>
|