Skip to content

Commit

Permalink
Merge pull request #5436 from nebulab/rainerd/admin/move-admin-applic…
Browse files Browse the repository at this point in the history
…ation-toast

[Admin] Enhance toast message positioning and layering
  • Loading branch information
rainerdema authored Oct 13, 2023
2 parents ee3277d + dfd7d3b commit 3c74c9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/app/views/layouts/solidus_admin/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@

<body class="bg-gray-15">
<%= render component("skip_link").new(href: "#main") %>
<div class="fixed right-3 bottom-3 flex flex-col gap-3" role="alert">
<% flash.each do |key, message| %>
<%= render component("ui/toast").new(text: message, scheme: key == :error ? :error : :default) %>
<% end %>
</div>

<div class="flex gap-0">
<div class="min-w-[240px] border-r border-r-gray-100 relative">
<div class="min-h-screen top-0 sticky flex">
Expand All @@ -26,5 +20,11 @@
<%= yield %>
</main>
</div>

<div class="fixed inset-x-0 bottom-3 flex items-center justify-center flex-col gap-3" role="alert">
<% flash.each do |key, message| %>
<%= render component("ui/toast").new(text: message, scheme: key == :error ? :error : :default) %>
<% end %>
</div>
</body>
</html>

0 comments on commit 3c74c9a

Please sign in to comment.