From f42c44921342b8fb7ba43b4a673682e9f4f8aa64 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 11 Mar 2026 15:42:00 +0000 Subject: [PATCH] Update two frontend asset directives to conform with Phoenix 1.8.5 --- assets/css/app.css | 3 +++ config/dev.exs | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 3575fdfc..9be22670 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -15,6 +15,9 @@ @custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &); @custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &); +/* Make LiveView wrapper divs transparent for layout */ +[data-phx-session], [data-phx-teleported-src] { display: contents } + @layer base { button:not(:disabled), [role="button"]:not(:disabled) { diff --git a/config/dev.exs b/config/dev.exs index b4f9ea5b..74cae0c4 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -67,9 +67,13 @@ config :music_library, MusicLibraryWeb.Endpoint, live_reload: [ web_console_logger: true, patterns: [ - ~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$", - ~r"priv/gettext/.*(po)$", - ~r"lib/music_library_web/(?:controllers|live|components|router)/?.*\.(ex|heex)$" + # Static assets, except user uploads + ~r"priv/static/(?!uploads/).*\.(js|css|png|jpeg|jpg|gif|svg)$"E, + # Gettext translations + ~r"priv/gettext/.*\.po$"E, + # Router, Controllers, LiveViews and LiveComponents + ~r"lib/music_library_web/router\.ex$"E, + ~r"lib/music_library_web/(controllers|live|components)/.*\.(ex|heex)$"E ] ]