From 02edd45b20998ef41bb08db67a7a430331dd6950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 30 May 2016 17:59:53 +0200 Subject: [PATCH] Fix #8 and layout of products --- bornhack/static_src/css/bornhack.css | 4 ++++ shop/templates/shop_index.html | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bornhack/static_src/css/bornhack.css b/bornhack/static_src/css/bornhack.css index a5180753..3f4cfa3d 100644 --- a/bornhack/static_src/css/bornhack.css +++ b/bornhack/static_src/css/bornhack.css @@ -1,5 +1,6 @@ body { margin-top: 90px; + margin-bottom: 35px; } * { @@ -86,6 +87,9 @@ a, a:active, a:focus { height: 500px; } +.thumbnail { + height: 330px; +} /* Footer */ footer { diff --git a/shop/templates/shop_index.html b/shop/templates/shop_index.html index 5b8516da..d5053847 100644 --- a/shop/templates/shop_index.html +++ b/shop/templates/shop_index.html @@ -40,7 +40,7 @@

- {{ product.description }} + {{ product.description|truncatechars:30 }}

@@ -59,6 +59,4 @@ - - {% endblock %}