# HG changeset patch # User neko259 # Date 2015-07-24 12:39:01 # Node ID be5f9d10ae6baa92e0439a1932ce5386bbf45b2b # Parent 116f9cc348798a22cba0c3d9e651737e7b9c7114 Use more mobile friendly design for random images (no tables, just blocks that can be line-breaked diff --git a/boards/static/css/base.css b/boards/static/css/base.css --- a/boards/static/css/base.css +++ b/boards/static/css/base.css @@ -109,7 +109,7 @@ textarea, input { width: 100%; } -.random-images-table > table { +.random-images-table > div { margin-left: auto; margin-right: auto; } diff --git a/boards/templates/boards/random.html b/boards/templates/boards/random.html --- a/boards/templates/boards/random.html +++ b/boards/templates/boards/random.html @@ -10,10 +10,8 @@ {% if posts %}
- - +
{% for post in posts %} -
{% if forloop.counter|divisibleby:"3" %} - - + +
{% endif %} {% endfor %} -
-
-
+
{% endif %}