浏览代码

Fix card grid deck layout (#544)

I made a slight change to the template which should make cards display side by side.
Currently cards were full width and under each other using this template.

It will now work like a responsive grid row making the cards equal widths.

Fixes #537

Co-authored-by: Zachary Svoboda <zsvoboda@coderedcorp.com>
Zachary Svoboda 2 年之前
父节点
当前提交
5c28e730ac
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      coderedcms/templates/coderedcms/blocks/cardgrid_deck.html

+ 3 - 5
coderedcms/templates/coderedcms/blocks/cardgrid_deck.html

@@ -2,10 +2,8 @@
 {% load wagtailcore_tags %}
 {% block grid_content %}
 <div class="row {{self.settings.custom_css_class}}">
-  <div class="col">
-    {% for block in self.content %}
-    {% include_block block %}
-    {% endfor %}
-  </div>
+  {% for block in self.content %}
+  <div class="col">{% include_block block %}</div>
+  {% endfor %}
 </div>
 {% endblock %}