diff --git a/app/assets/stylesheets/card-columns.css b/app/assets/stylesheets/card-columns.css index 1bbed081e..b1fb99233 100644 --- a/app/assets/stylesheets/card-columns.css +++ b/app/assets/stylesheets/card-columns.css @@ -499,7 +499,7 @@ /* Override card styles within columns /* ------------------------------------------------------------------------ */ - .body--boards { + body:has(.cards) { .card { --block-space: 1em; --block-space-half: 0.5em; diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index c11876e16..a7e4769f5 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -19,9 +19,11 @@ <%= turbo_frame_tag :cards_container do %>
- <%= with_automatic_pagination :cards_paginated_container, @page do %> - <%= render "cards/display/previews", cards: @page.records, draggable: true %> - <% end %> -
No cards match this filter
+
+ <%= with_automatic_pagination :cards_paginated_container, @page do %> + <%= render "cards/display/previews", cards: @page.records, draggable: true %> + <% end %> +
No cards match this filter
+
<% end %>