Implement dense grid as variation of normal grid

This commit is contained in:
Claudio Ortolina
2025-11-03 09:48:38 +00:00
parent af4eeb7df2
commit ed99f6bda8
4 changed files with 28 additions and 106 deletions
@@ -89,12 +89,14 @@
</div>
</div>
<.dense_record_grid
<.record_grid
:if={@display == :grid}
id="collection"
records={@streams.records}
record_show_path={fn record -> ~p"/collection/#{record}" end}
record_edit_path={fn record -> ~p"/collection/#{record}/edit" end}
display_artist_names
density={:high}
/>
<.record_list
@@ -76,12 +76,14 @@
</div>
</div>
<.dense_record_grid
<.record_grid
:if={@display == :grid}
id="wishlist"
records={@streams.records}
record_show_path={fn record -> ~p"/wishlist/#{record}" end}
record_edit_path={fn record -> ~p"/wishlist/#{record}/edit" end}
display_artist_names
density={:high}
/>
<.record_list