diff --git a/lib/mv_web/components/core_components.ex b/lib/mv_web/components/core_components.ex
index ae50ecb..54a5a64 100644
--- a/lib/mv_web/components/core_components.ex
+++ b/lib/mv_web/components/core_components.ex
@@ -60,27 +60,29 @@ defmodule MvWeb.CoreComponents do
id={@id}
phx-click={JS.push("lv:clear-flash", value: %{key: @kind}) |> hide("##{@id}")}
role="alert"
- class={[
+ class="z-50 toast toast-top toast-end"
+ {@rest}
+ >
+
- <.icon :if={@kind == :info} name="hero-information-circle" class="size-5 shrink-0" />
- <.icon :if={@kind == :error} name="hero-exclamation-circle" class="size-5 shrink-0" />
- <.icon :if={@kind == :success} name="hero-check-circle" class="size-5 shrink-0" />
- <.icon :if={@kind == :warning} name="hero-information-circle" class="size-5 shrink-0" />
-
-
{@title}
-
{msg}
+ ]}>
+ <.icon :if={@kind == :info} name="hero-information-circle" class="size-5 shrink-0" />
+ <.icon :if={@kind == :error} name="hero-exclamation-circle" class="size-5 shrink-0" />
+ <.icon :if={@kind == :success} name="hero-check-circle" class="size-5 shrink-0" />
+ <.icon :if={@kind == :warning} name="hero-information-circle" class="size-5 shrink-0" />
+
+
+
-
-
"""
end
@@ -186,7 +188,7 @@ defmodule MvWeb.CoreComponents do
end)
~H"""
-