fix: more alignment with the old shell

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-26 07:44:31 +02:00
parent 05ef128c71
commit 689166a80d
3 changed files with 26 additions and 7 deletions

View File

@@ -587,13 +587,23 @@ defmodule BDS.Desktop.ShellLive do
</div>
<% end %>
<%= if Map.get(@sidebar_filters_config, :has_more) do %>
<div class="sidebar-load-more">
<button class="load-more-button" data-testid="sidebar-load-more" type="button" phx-click="load_more_sidebar">
<%= translated("Load more") %>
</button>
</div>
<% end %>
"""
else
~H"""
"""
end
end
defp render_sidebar_load_more(assigns) do
filters = Map.get(assigns.sidebar_data, :filters, %{})
if Map.get(filters, :has_more) do
~H"""
<div class="sidebar-load-more">
<button class="load-more-button" data-testid="sidebar-load-more" type="button" phx-click="load_more_sidebar">
<%= translated("Load more") %>
</button>
</div>
"""
else
~H"""