Commits

Radim Novotny committed f89901a

Added 100x100px box to search results to prevent content jumping from left to right when the page is loaded

  • Participants
  • Parent commits 903428d

Comments (0)

Files changed (2)

File lfstheme/static/css/main.css

     float: left;
 }
 
+.preview-100-100 {
+    width: 100px;
+    height: 100px;
+    display: block;
+}
+
 .category .category-image {
     margin-right: 10px;
     padding-bottom: 10px;

File lfstheme/templates/lfs/search/search_results.html

             {% for product in products %}
                 <tr>
                     <td>
-                        <a href="{{ product.get_absolute_url }}">
+                        <a href="{{ product.get_absolute_url }}" class="preview-100-100">
                             <img src="{{ product.get_image.image.url_100x100 }}"
                                  alt="{{ product.get_name }}"
                                  title="{{ product.get_name }}" />