diff --git a/lib/pinchflat_web/components/core_components.ex b/lib/pinchflat_web/components/core_components.ex index 58f785ce..0bad772b 100644 --- a/lib/pinchflat_web/components/core_components.ex +++ b/lib/pinchflat_web/components/core_components.ex @@ -19,6 +19,7 @@ defmodule PinchflatWeb.CoreComponents do import PinchflatWeb.Gettext alias Phoenix.LiveView.JS + alias PinchflatWeb.CustomComponents.TextComponents @doc """ Renders a modal. @@ -644,7 +645,11 @@ defmodule PinchflatWeb.CoreComponents do
  • <%= k %>: - <%= v %> + <%= if is_binary(v) && URI.parse(v).scheme && URI.parse(v).scheme =~ "http" do %> + <%= v %> + <% else %> + <%= v %> + <% end %>