mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
add native-modal element
This commit is contained in:
1 parent
d36f40cafd
commit
198a599a2b
5 files changed
+25
-6
No files matched your search
@@ -1,9 +1,9 @@
|
||||
<% if turbo_native_app? && !turbo_frame_request? %>
|
||||
<% content_for(:html_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<turbo-frame id="drawer">
|
||||
<div class="w-full">
|
||||
<native-modal class="block w-full" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</native-modal>
|
||||
</turbo-frame>
|
||||
<% else %>
|
||||
<% offset = local_assigns[:title] ? '45px' : '0px' %>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<% if turbo_native_app? && !turbo_frame_request? %>
|
||||
<% content_for(:html_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<turbo-frame id="modal">
|
||||
<div class="max-w-lg mx-auto px-4 pb-6">
|
||||
<native-modal class="block max-w-lg mx-auto px-4 pb-6" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</native-modal>
|
||||
</turbo-frame>
|
||||
<% else %>
|
||||
<turbo-frame id="modal">
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
</turbo-frame>
|
||||
<% elsif turbo_native_app? %>
|
||||
<% content_for(:html_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<div class="w-full [&>.px-5]:px-4">
|
||||
<native-modal class="block w-full [&>.px-5]:px-4" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</native-modal>
|
||||
<% else %>
|
||||
<% if local_assigns[:title] %>
|
||||
<div class="sticky top-0 z-10 flex justify-between bg-base-100 py-2 px-5 items-center border-b pb-2 font-medium">
|
||||
|
||||
Reference in new issue
Block a user