For more convenient use of css, please add attribute for ajaxPartial. Exapmle: {% ajaxPartial({ class: ''card_list"}) %} convert to <div class="card_list" data-ajax-partial="ArticleList::list">
Why not putting the CSS in the partial? Maybe I’m missing something
Because AjaxPartial inserts an additional div and the layout collapses
<div class="card_list" data-ajax-partial="ArticleList::list">
{% partial 'ArticleList::list' %}
</div>
Same thing