From 98f5ab8489cec60b82d73b5c65d51791bddcbca0 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 1 Mar 2019 12:54:52 +0000 Subject: [PATCH] [FIX] web: not loose footer in some case 08b2d1f9a 08b2d1f9ac was intended so margin on the top of the body worked (it seems that wkhtmtopdf only started the body from the first visible elements). From a subsequent report, on some document template the CSS could have adverse effect of not showing the footer. With this changeset, the CSS is only applied on the body which was the first intention. fixes #31531 opw-1925894 closes #31533 --- addons/web/static/src/scss/report.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/scss/report.scss b/addons/web/static/src/scss/report.scss index d05fd47ded0..3a9a757c1e8 100644 --- a/addons/web/static/src/scss/report.scss +++ b/addons/web/static/src/scss/report.scss @@ -36,7 +36,7 @@ div.address.row { } /* margin-top does not work on first visible element of page */ -body > *:first-child::before { +body:not([onload="subst()"]) > *:first-child::before { content: '\00a0'; display: block; height: 1px;