mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
adjust flash
This commit is contained in:
1 parent
ef28b80589
commit
53ca45a67a
2 files changed
+12
-19
No files matched your search
@@ -2,19 +2,16 @@
|
||||
<div id="native_flash" hidden data-notice="<%= flash[:notice] %>" data-alert="<%= flash[:alert] %>"></div>
|
||||
<% else %>
|
||||
<flash-message id="flash" class="fixed top-0 inset-x-0 z-50 block pointer-events-none">
|
||||
<div class="max-w-xl mx-auto mt-1.5 pointer-events-auto">
|
||||
<div class="px-4 py-3 rounded-2xl bg-base-200 shadow 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 class="w-fit max-w-xl mx-auto mt-1.5 pointer-events-auto">
|
||||
<div class="px-4 py-3 rounded-2xl bg-base-200 shadow flex items-center gap-3 mx-4 md:mx-0">
|
||||
<% 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 class="mr-1">
|
||||
<span><%= flash[:notice] || flash[:alert] %></span>
|
||||
</div>
|
||||
<button type="button" data-action="click:flash-message#close" class="mr-1 cursor-pointer">×</button>
|
||||
</div>
|
||||
</div>
|
||||
</flash-message>
|
||||
|
||||
Reference in new issue
Block a user