Add record count in records list

This commit is contained in:
Claudio Ortolina
2024-10-07 22:59:38 +01:00
parent 33f4cb11be
commit e404808c06
2 changed files with 6 additions and 1 deletions
@@ -477,7 +477,7 @@ defmodule MusicLibraryWeb.CoreComponents do
~H"""
<div class="px-4 sm:px-0">
<table class="md:w-full mt-11">
<table class="md:w-full">
<thead class="text-sm text-left leading-6 text-zinc-500">
<tr>
<th :for={col <- @col} class="p-0 pb-4 pr-6 font-normal"><%= col[:label] %></th>
@@ -18,6 +18,11 @@
</div>
</header>
<p class="text-right text-base max-sm:text-xs mt-8">
Showing <b><%= Enum.count(@streams.records) %></b>
of <b><%= @record_list_params.total_entries %></b>
records
</p>
<.table
id="records"
rows={@streams.records}