From f2e99603033be2acd7d75692928336d8dae49bd4 Mon Sep 17 00:00:00 2001 From: jamey Date: Fri, 13 Mar 2026 13:34:32 +0000 Subject: [PATCH] scroll flash messages into view on mount Co-Authored-By: Claude Opus 4.5 --- lib/berrypod_web/components/core_components.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/berrypod_web/components/core_components.ex b/lib/berrypod_web/components/core_components.ex index af73dde..834ea68 100644 --- a/lib/berrypod_web/components/core_components.ex +++ b/lib/berrypod_web/components/core_components.ex @@ -48,6 +48,7 @@ defmodule BerrypodWeb.CoreComponents do role={if(@kind == :error, do: "alert", else: "status")} aria-live={if(@kind == :error, do: "assertive", else: "polite")} class="admin-banner" + phx-mounted={JS.dispatch("scroll-into-view", to: "##{@id}")} {@rest} >