From 0866fbcdca6eeb8b1e3d3ed43ad3426fceecd927 Mon Sep 17 00:00:00 2001 From: breakid Date: Sat, 13 Jul 2024 17:14:58 -0400 Subject: [PATCH] Applies suggestions from MR feedback --- lib/pinchflat_web/components/core_components.ex | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/pinchflat_web/components/core_components.ex b/lib/pinchflat_web/components/core_components.ex index 7279e28..0bad772 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,10 +645,8 @@ defmodule PinchflatWeb.CoreComponents do
  • <%= k %>: - <%= if is_binary(v) and String.starts_with?(v, "http") do %> - <.link class="underline decoration-bodydark decoration-1 hover:decoration-white" href={v} target="_blank"> - <%= v %> - + <%= if is_binary(v) && URI.parse(v).scheme && URI.parse(v).scheme =~ "http" do %> + <%= v %> <% else %> <%= v %> <% end %>