Browse Source

quick cleaning

main
pvincent 2 days ago
parent
commit
8b5994a649
  1. 1
      app/views/layouts/components/_flash.html.erb
  2. 15
      app/views/layouts/components/_flashbar.html.erb

1
app/views/layouts/components/_flash.html.erb

@ -9,7 +9,6 @@
" } do %>
<div class="hidden">
<% flash.each do |type, messages| %>
<%= Time.now %>
<% Array(messages).each do |message| %>
<div data-flash-target="flashItem" data-type="<%= type %>">
<%= message %>

15
app/views/layouts/components/_flashbar.html.erb

@ -1,21 +1,8 @@
<div id="flashbar" class="flex justify-center" data-turbo-permanent="yes">
<!--
here is a shadow root which serves as a placeholder for the toaster area.
data-turbo-permant prevents morphing to dismiss active toasts
data-turbo-permanent prevents morphing to dismiss active toasts
-->
<%#
<div role="alert" class="toastify on toastify-center alert alert-success inset-ring-2">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current" fill="none" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<div>
super long sentence which should wrap at least once or various lines.
super long sentence which should wrap at least once or various lines.
</div>
<button class='toast-close'>x</button>
</div>
%>
</div>
<%= render 'layouts/components/flash' %>
Loading…
Cancel
Save