„lib/chiya_web/live/note_show_live.ex“ ändern

This commit is contained in:
inhji 2023-03-09 08:53:00 +01:00
parent 98e82deb94
commit a463c58f6e

View file

@ -30,10 +30,10 @@ defmodule ChiyaWeb.NoteShowLive do
<div class="flex flex-wrap gap-3"> <div class="flex flex-wrap gap-3">
<%= for image <- @note.images do %> <%= for image <- @note.images do %>
<article> <article>
<img <a href={Chiya.Uploaders.NoteImage.url({image.path, image}, :full_dithered)}><img
class="rounded-lg w-28 " class="rounded-lg w-28 "
src={Chiya.Uploaders.NoteImage.url({image.path, image}, :thumb)} src={Chiya.Uploaders.NoteImage.url({image.path, image}, :thumb_dithered)}
/> /></a>
<p class="text-center text-xs text-zinc-700"><a href="">Delete image</a></p> <p class="text-center text-xs text-zinc-700"><a href="">Delete image</a></p>
</article> </article>
<% end %> <% end %>