mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 15:42:32 -05:00
unify native modals
This commit is contained in:
1 parent
4fec8db589
commit
49463d611c
30 files changed
+37
-44
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<% if turbo_native_app? && !turbo_frame_request? %>
|
||||
<% if turbo_native_app? %>
|
||||
<% content_for(:native_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<turbo-frame id="drawer">
|
||||
<native-modal class="block w-full" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<native-modal class="block max-w-lg mx-auto <%= turbo_native_android? ? 'pb-4' : 'pb-6' %>" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<%= yield %>
|
||||
</native-modal>
|
||||
</turbo-frame>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<% if turbo_native_app? %>
|
||||
<% content_for(:native_modal, 'true') %>
|
||||
<% content_for(:native_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<turbo-frame id="modal">
|
||||
<native-modal class="block max-w-lg mx-auto <%= turbo_native_android? ? 'pb-4' : 'pb-6' %>" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<% if turbo_native_app? && turbo_frame_request? %>
|
||||
<% if turbo_native_app? %>
|
||||
<% content_for(:native_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<turbo-frame id="modal">
|
||||
<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 %>">
|
||||
<native-modal class="block max-w-lg mx-auto <%= turbo_native_android? ? 'pb-4' : 'pb-6' %>" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>">
|
||||
<%= yield %>
|
||||
</native-modal>
|
||||
</turbo-frame>
|
||||
@@ -23,11 +24,6 @@
|
||||
</div>
|
||||
</turbo-modal>
|
||||
</turbo-frame>
|
||||
<% elsif turbo_native_app? %>
|
||||
<% content_for(:native_title, local_assigns[:title]) if local_assigns[:title] %>
|
||||
<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 %>
|
||||
</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