fix(chat): make image size smaller

This commit is contained in:
Daniel Kempkens 2023-08-15 17:56:02 +02:00
parent feeb67f68e
commit 889d7d6785
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -4,7 +4,7 @@ defmodule BdfrBrowser.RenderUtils do
end
def message(msg) do
img_replacement = "<img src=\"/chat_media/\\1\" style=\"max-width: 500px;\" alt=\"Image\" />"
img_replacement = "<img src=\"/chat_media/\\1\" style=\"max-width: 300px;\" alt=\"Image\" />"
msg
|> String.replace(~r/https:\/\/i\.redd\.it\/(.+)/, img_replacement)