We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1726e8 commit 47f8ccbCopy full SHA for 47f8ccb
app/views/shared/_notice.html.erb
@@ -1,15 +1,7 @@
1
-<% if flash[:notice]&.any? || flash[:alert]&.any? %>
2
- <div class="pb-4">
3
- <% flash[:notice]&.each do |notice| %>
4
- <div class="rounded-lg bg-warning-400 dark:bg-warning-800 p-4 m-2">
5
- <%= notice %>
6
- </div>
7
- <% end %>
8
-
9
- <% flash[:alert]&.each do |alert| %>
10
- <div class="rounded-lg bg-error-400 dark:bg-error-800 p-4 m-2">
11
- <%= alert %>
12
13
14
15
-<% end %>
+<div class="container flex justify-center w-full align-center">
+ <% if notice %>
+ <p class="text-sm notice text-secondary-700"><%= notice %></p>
+ <% elsif alert %>
+ <p class="text-sm alert text-tertiary-700"><%= alert %></p>
+ <% end %>
+</div>
0 commit comments