Skip to content

Commit

Permalink
fix: reposition flash on mobile. (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
teesloane authored Jun 5, 2024
1 parent 4fb115e commit 88dc0cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bike_brigade_web/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ defmodule BikeBrigadeWeb.CoreComponents do
phx-mounted={@autoshow && show("##{@id}")}
phx-click={JS.push("lv:clear-flash", value: %{key: @kind}) |> hide("##{@id}")}
class={[
"top-0 w-full left-0 right-0 z-50 p-1 m-0 p-3",
"fixed hidden md:left-auto md:top-2 md:right-2 md:w-96 md:z-50 md:rounded-lg md:p-3 md:shadow-md md:shadow-zinc-900/5 ring-1",
"bottom-0 w-[80%] mx-auto left-0 right-0 z-50 p-1 m-4 p-3",
"fixed hidden md:bottom-auto md:m-0 md:left-auto md:top-2 md:right-2 md:w-96 md:z-50 md:rounded-lg md:p-3 md:shadow-md md:shadow-zinc-900/5 ring-1",
@kind == :info && "bg-emerald-50 text-emerald-800 ring-emerald-500 fill-cyan-900",
@kind == :warn && "bg-amber-50 text-amber-800 ring-amber-500 fill-amber-900",
@kind == :error && "bg-rose-50 text-rose-900 shadow-md ring-rose-500 fill-rose-900"
Expand Down

0 comments on commit 88dc0cd

Please sign in to comment.