mix format
This commit is contained in:
parent
b86e3a5072
commit
40fe6d05a5
1 changed files with 7 additions and 5 deletions
|
@ -28,6 +28,7 @@ defmodule ChiyaWeb.PublicComponents do
|
||||||
"""
|
"""
|
||||||
|
|
||||||
attr :text, :string, default: "⌘"
|
attr :text, :string, default: "⌘"
|
||||||
|
|
||||||
def divider(assigns) do
|
def divider(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div class="flex items-center my-8 text-theme-base/75 before:flex-1 after:flex-1 before:content-[''] after:content-[''] before:p-[0.5px] after:p-[0.5px] before:bg-theme-background1 after:bg-theme-background1 w-full mx-auto last:hidden">
|
<div class="flex items-center my-8 text-theme-base/75 before:flex-1 after:flex-1 before:content-[''] after:content-[''] before:p-[0.5px] after:p-[0.5px] before:bg-theme-background1 after:bg-theme-background1 w-full mx-auto last:hidden">
|
||||||
|
@ -86,8 +87,7 @@ defmodule ChiyaWeb.PublicComponents do
|
||||||
data-gallery={gallery_name(note)}
|
data-gallery={gallery_name(note)}
|
||||||
data-description={ChiyaWeb.Markdown.render(image.content)}
|
data-description={ChiyaWeb.Markdown.render(image.content)}
|
||||||
>
|
>
|
||||||
<img src={ChiyaWeb.Helpers.image_url(image, :thumb)} loading="lazy"
|
<img src={ChiyaWeb.Helpers.image_url(image, :thumb)} loading="lazy" />
|
||||||
/>
|
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</section>
|
</section>
|
||||||
|
@ -115,9 +115,11 @@ defmodule ChiyaWeb.PublicComponents do
|
||||||
<% image = main_image(note) %>
|
<% image = main_image(note) %>
|
||||||
<%= if image do %>
|
<%= if image do %>
|
||||||
<figure class="mb-4">
|
<figure class="mb-4">
|
||||||
<img
|
<img
|
||||||
src={ChiyaWeb.Helpers.image_url(image, :full)}
|
src={ChiyaWeb.Helpers.image_url(image, :full)}
|
||||||
class="rounded" title={image.content} />
|
class="rounded"
|
||||||
|
title={image.content}
|
||||||
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue