From b63c6bd31835a8c3f8b1fc63799e216800b7d453 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 30 Dec 2024 19:18:15 -0500 Subject: [PATCH] fix descriptions possibly overflowing widths --- lib/memex_web/components/core_components.ex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/memex_web/components/core_components.ex b/lib/memex_web/components/core_components.ex index 2e87333..0f03903 100644 --- a/lib/memex_web/components/core_components.ex +++ b/lib/memex_web/components/core_components.ex @@ -168,14 +168,14 @@ defmodule MemexWeb.CoreComponents do link( link, to: link, - class: "link inline", + class: "link inline break-words", target: "_blank", rel: "noopener noreferrer" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "

#{link}

" + "

#{link}

" end ) end @@ -190,12 +190,12 @@ defmodule MemexWeb.CoreComponents do link( "[[[#{slug}]]]", to: ~p"/note/#{slug}", - class: "link inline" + class: "link inline break-words" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "#{prefix}

#{link}

#{suffix}" + "#{prefix}

#{link}

#{suffix}" end ) end @@ -217,12 +217,12 @@ defmodule MemexWeb.CoreComponents do link( "[[#{slug}]]", to: target, - class: "link inline" + class: "link inline break-words" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "#{prefix}

#{link}

#{suffix}" + "#{prefix}

#{link}

#{suffix}" end ) end @@ -245,12 +245,12 @@ defmodule MemexWeb.CoreComponents do link( "[#{slug}]", to: target, - class: "link inline" + class: "link inline break-words" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "#{prefix}

#{link}

#{suffix}" + "#{prefix}

#{link}

#{suffix}" end ) end