mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 15:22:33 -05:00
add native app
This commit is contained in:
1 parent
ad3367dae0
commit
22b2e7475a
17 files changed
+181
-134
No files matched your search
@@ -1,17 +1,21 @@
|
||||
<div id="flash" class="absolute top-0 w-full h-0 z-20">
|
||||
<div class="max-w-xl mx-auto mt-1.5">
|
||||
<div class="px-4 py-3 rounded-2xl bg-base-200 flex items-center justify-between mx-4 md:mx-0">
|
||||
<div class="flex items-center space-x-3">
|
||||
<% if flash[:notice] %>
|
||||
<%= svg_icon('info_circle', class: 'stroke-info flex-none w-6 h-6') %>
|
||||
<% else %>
|
||||
<%= svg_icon('exclamation_circle', class: 'stroke-error flex-none w-6 h-6') %>
|
||||
<% end %>
|
||||
<div>
|
||||
<span><%= flash[:notice] || flash[:alert] %></span>
|
||||
<% if turbo_native_app? %>
|
||||
<div id="native_flash" hidden data-notice="<%= flash[:notice] %>" data-alert="<%= flash[:alert] %>"></div>
|
||||
<% else %>
|
||||
<div id="flash" class="absolute top-0 w-full h-0 z-20">
|
||||
<div class="max-w-xl mx-auto mt-1.5">
|
||||
<div class="px-4 py-3 rounded-2xl bg-base-200 flex items-center justify-between mx-4 md:mx-0">
|
||||
<div class="flex items-center space-x-3">
|
||||
<% if flash[:notice] %>
|
||||
<%= svg_icon('info_circle', class: 'stroke-info flex-none w-6 h-6') %>
|
||||
<% else %>
|
||||
<%= svg_icon('exclamation_circle', class: 'stroke-error flex-none w-6 h-6') %>
|
||||
<% end %>
|
||||
<div>
|
||||
<span><%= flash[:notice] || flash[:alert] %></span>
|
||||
</div>
|
||||
</div>
|
||||
<remove-on-event data-event-type="click" data-selector-id="flash" class="mr-1 cursor-pointer">×</remove-on-event>
|
||||
</div>
|
||||
<remove-on-event data-event-type="click" data-selector-id="flash" class="mr-1 cursor-pointer">×</remove-on-event>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user