Commits

Radim Novotny committed 930a2ca

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

  • Participants
  • Parent commits f689bb2

Comments (0)

Files changed (2)

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;

lfstheme/templates/lfs/search/search_results.html

         {% for product in products %}
             <div class="container append-bottom">
                 <div class="span-5">
-                    <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 }}" />