diff --git a/.formatter.exs b/.formatter.exs index a78aed3cf..ae3e2f89e 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,4 +1,5 @@ [ + plugins: [Phoenix.LiveView.HTMLFormatter], import_deps: [:ecto, :ecto_sql, :phoenix], subdirectories: ["priv/*/migrations"], inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"] diff --git a/assets/js/app.js b/assets/js/app.js index 01d4640c1..51d51caae 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -29,7 +29,7 @@ window.addEventListener(`phx:update-value`, (e) => { window.addEventListener(`phx:hide`, (e) => { let el = document.getElementById(e.detail.id) - el.style.display = 'none' + el.classList.add('hidden') }) window.addEventListener(`phx:scroll-to`, (e) => { diff --git a/lib/plausible_web/live/funnel_settings.ex b/lib/plausible_web/live/funnel_settings.ex index 16f7913e2..0fb28fe5c 100644 --- a/lib/plausible_web/live/funnel_settings.ex +++ b/lib/plausible_web/live/funnel_settings.ex @@ -20,20 +20,34 @@ defmodule PlausibleWeb.Live.FunnelSettings do def render(assigns) do ~H""" <%= if @add_funnel? do %> - <.live_component module={PlausibleWeb.Live.FunnelSettings.Form} id="funnelForm" site={@site} form={to_form(Plausible.Funnel.changeset())} goals={@goals} /> + <.live_component + module={PlausibleWeb.Live.FunnelSettings.Form} + id="funnelForm" + site={@site} + form={to_form(Plausible.Funnel.changeset())} + goals={@goals} + /> <% else %>
- You need to define at least two goals to create a funnel. Go ahead and <%= link "add goals", to: PlausibleWeb.Router.Helpers.site_path(@socket, :new_goal, @site.domain), class: "text-indigo-500 w-full text-center" %> to proceed. -
-+ You need to define at least two goals to create a funnel. Go ahead and <%= link( + "add goals", + to: PlausibleWeb.Router.Helpers.site_path(@socket, :new_goal, @site.domain), + class: "text-indigo-500 w-full text-center" + ) %> to proceed. +