From 2a357715c53dad6888bb2950fe959d4fd8c73134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=83taireau?= Date: Sun, 7 Jun 2020 18:57:21 +0200 Subject: [PATCH] Add the description under the products. --- copanier/static/app.css | 8 +++++++- copanier/templates/delivery/place_order.html | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/copanier/static/app.css b/copanier/static/app.css index 8c5b1a4..1661f9e 100644 --- a/copanier/static/app.css +++ b/copanier/static/app.css @@ -379,6 +379,8 @@ article.order { table.order th.product { min-width: 10rem; width: inherit; + max-width: 25em; + overflow: hidden; } td.with-input { padding: 0; @@ -694,4 +696,8 @@ ul.actions > li { .fixed-table td, .fixed-table th{ white-space:pre-wrap; -} \ No newline at end of file +} + +small { + font-size: 70% !important; +} diff --git a/copanier/templates/delivery/place_order.html b/copanier/templates/delivery/place_order.html index 890c543..d0226e9 100644 --- a/copanier/templates/delivery/place_order.html +++ b/copanier/templates/delivery/place_order.html @@ -36,7 +36,8 @@ {% if not product.rupture %} {{ product }} {% if product.rupture %}(RUPTURE !){% endif %} - {% if product.description or product.img %} + {% if product.description %} +
{{ product.description }} {% endif %} {{ product.price | round(2) }} €