„lib/chiya_web/live/note_show_live.ex“ ändern
This commit is contained in:
parent
9f3ad7d526
commit
d041cc9a5d
1 changed files with 2 additions and 2 deletions
|
@ -30,13 +30,13 @@ 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>
|
||||||
<a href="#image-<%= image.id %>"><img
|
<a href={"#image-#{image.id}"}><img
|
||||||
class="rounded-lg w-28 "
|
class="rounded-lg w-28 "
|
||||||
src={Chiya.Uploaders.NoteImage.url({image.path, image}, :thumb_dithered)}
|
src={Chiya.Uploaders.NoteImage.url({image.path, image}, :thumb_dithered)}
|
||||||
/></a>
|
/></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>
|
||||||
|
|
||||||
<a href="#" class="lightbox" id="image-<%= image.id %>">
|
<a href="#" class="lightbox" id={"image-#{image.id}"}>
|
||||||
<span style="background-image: url('<%= Chiya.Uploaders.NoteImage.url({image.path, image}, :full_dithered) %>')"></span>
|
<span style="background-image: url('<%= Chiya.Uploaders.NoteImage.url({image.path, image}, :full_dithered) %>')"></span>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in a new issue