|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
|
|
|
<% offset = local_assigns[:title] ? '45px' : '0px' %>
|
|
|
|
<turbo-frame id="drawer">
|
|
|
|
<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 %>">
|
|
|
|
<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="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">
|
|
|
|
<div class="bg-base-100 min-h-screen max-h-screen relative w-full min-w-0">
|
|
|
|
<% if local_assigns[:title] %>
|
|
|
|
<% if local_assigns[:title] %>
|
|
|
|
<div class="flex justify-between bg-base-100 py-2 px-4 items-center border-b pb-2 font-medium">
|
|
|
|
<div class="flex justify-between bg-base-100 py-2 px-4 items-center border-b pb-2 font-medium">
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
@ -14,7 +15,7 @@
|
|
|
|
×
|
|
|
|
×
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="w-screen md:w-[620px] overflow-y-auto" style="max-height: calc(100vh - <%= local_assigns[:title] ? '45px' : '0px' %>)">
|
|
|
|
<div class="md:w-[620px] overflow-y-auto" style="max-height: calc(100vh - <%= offset %>); max-height: calc(100dvh - <%= offset %>)">
|
|
|
|
<%= yield %>
|
|
|
|
<%= yield %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|