diff --git a/lib/pinchflat_web/components/core_components.ex b/lib/pinchflat_web/components/core_components.ex index 58f785c..7279e28 100644 --- a/lib/pinchflat_web/components/core_components.ex +++ b/lib/pinchflat_web/components/core_components.ex @@ -644,7 +644,13 @@ defmodule PinchflatWeb.CoreComponents do
- <%= v %>
+ <%= 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 %>
+
+ <% else %>
+ <%= v %>
+ <% end %>