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

This commit is contained in:
inhji 2023-03-09 09:16:00 +01:00
parent 0f5e6c54df
commit 9f3ad7d526

View file

@ -30,11 +30,15 @@ defmodule ChiyaWeb.NoteShowLive do
<div class="flex flex-wrap gap-3">
<%= for image <- @note.images do %>
<article>
<a href={Chiya.Uploaders.NoteImage.url({image.path, image}, :full_dithered)}><img
<a href="#image-<%= image.id %>"><img
class="rounded-lg w-28 "
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>
<a href="#" class="lightbox" id="image-<%= image.id %>">
<span style="background-image: url('<%= Chiya.Uploaders.NoteImage.url({image.path, image}, :full_dithered) %>')"></span>
</a>
</article>
<% end %>
</div>