Pack category stats on same line on large screens
This commit is contained in:
@@ -18,26 +18,28 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="grid lg:grid-cols-2 gap-x-5">
|
||||||
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
|
<div>
|
||||||
{gettext("Formats")}
|
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
|
||||||
</h1>
|
{gettext("Formats")}
|
||||||
<.counters_by_category
|
</h1>
|
||||||
categories_with_counts={@collection_count_by_format}
|
<.counters_by_category
|
||||||
category_format_fn={&format_label/1}
|
categories_with_counts={@collection_count_by_format}
|
||||||
category_path_fn={fn format -> ~p"/collection?query=format:#{format}" end}
|
category_format_fn={&format_label/1}
|
||||||
/>
|
category_path_fn={fn format -> ~p"/collection?query=format:#{format}" end}
|
||||||
</div>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
|
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
|
||||||
{gettext("Types")}
|
{gettext("Types")}
|
||||||
</h1>
|
</h1>
|
||||||
<.counters_by_category
|
<.counters_by_category
|
||||||
categories_with_counts={@collection_count_by_type}
|
categories_with_counts={@collection_count_by_type}
|
||||||
category_format_fn={&type_label/1}
|
category_format_fn={&type_label/1}
|
||||||
category_path_fn={fn type -> ~p"/collection?query=type:#{type}" end}
|
category_path_fn={fn type -> ~p"/collection?query=type:#{type}" end}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user