fix(chat): make image size smaller
This commit is contained in:
parent
feeb67f68e
commit
889d7d6785
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ defmodule BdfrBrowser.RenderUtils do
|
||||||
end
|
end
|
||||||
|
|
||||||
def message(msg) do
|
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
|
msg
|
||||||
|> String.replace(~r/https:\/\/i\.redd\.it\/(.+)/, img_replacement)
|
|> String.replace(~r/https:\/\/i\.redd\.it\/(.+)/, img_replacement)
|
||||||
|
|
Reference in a new issue