Show separator only when there’s wishlisted records

This commit is contained in:
Claudio Ortolina
2025-05-22 08:11:49 +01:00
committed by GitHub
parent 4e12b3281c
commit ee93cb22ed
@@ -178,7 +178,7 @@
records_count={@collection_records_count} records_count={@collection_records_count}
record_path={fn record -> ~p"/collection/#{record}" end} record_path={fn record -> ~p"/collection/#{record}" end}
/> />
<.separator class="mt-8 mb-8" /> <.separator :if={@wishlist_records_count > 0} class="mt-8 mb-8" />
<.record_grid <.record_grid
:if={@wishlist_records_count > 0} :if={@wishlist_records_count > 0}
title={gettext("Wishlist")} title={gettext("Wishlist")}