From 266e1399b70ccfa2e037e14db27df828554e7ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Faure-Lacroix?= Date: Tue, 31 Mar 2015 19:31:11 +0300 Subject: [PATCH] Make the partner on 2 lines maximum with ellipsis (webkit only) --- .../report/detailed_reconciliation.mako | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/account_banking_reconciliation/report/detailed_reconciliation.mako b/account_banking_reconciliation/report/detailed_reconciliation.mako index 314e5ec01..6af634d13 100644 --- a/account_banking_reconciliation/report/detailed_reconciliation.mako +++ b/account_banking_reconciliation/report/detailed_reconciliation.mako @@ -37,11 +37,25 @@ width:100px; } .col_partner { + /* + Max of 2 lines in height + */ + line-height: 15px; + max-height: 30px; width:150px; text-overflow: ellipsis; overflow: hidden; - white-space: nowrap; } + + div.col_partner { + display: -webkit-box; + /* + Enable ellipsis on webkit browser for 2 lines + */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + } + .right_col { text-align:right; width:100px;