„lib/chiya_web/components/public_components.ex“ ändern

This commit is contained in:
inhji 2023-07-06 08:36:59 +02:00
parent e4d262dfc5
commit df1e3a8244

View file

@ -109,7 +109,7 @@ defmodule ChiyaWeb.PublicComponents do
<section class="note-list default | mt-6 sm:w-auto flex flex-col gap-3"> <section class="note-list default | mt-6 sm:w-auto flex flex-col gap-3">
<%= for note <- assigns.notes do %> <%= for note <- assigns.notes do %>
<a href={~p"/note/#{note.slug}"} <a href={~p"/note/#{note.slug}"}
class="rounded-lg -mx-2 -my-0.5 px-2 py-0.5 border-theme-background1 hover:bg-theme-background1 transition"> class="rounded-lg px-6 pt-4 pb-5 border border-theme-background1 hover:bg-theme-background1 transition">
<header> <header>
<span class="text-theme-secondary text-lg font-semibold leading-8"> <span class="text-theme-secondary text-lg font-semibold leading-8">
<%= note.name %> <%= note.name %>
@ -119,7 +119,7 @@ defmodule ChiyaWeb.PublicComponents do
</span> </span>
</header> </header>
<p class="text-theme-base"><%= String.slice(note.content, 0..100) %></p> <p class="text-theme-base"><%= String.slice(note.content, 0..150) %></p>
</a> </a>
<% end %> <% end %>
</section> </section>