From f6472ba0b7f1ca07e2bf91d797ed62d6b51972a0 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Thu, 21 Jun 2018 22:45:12 +0530 Subject: [PATCH] [style] max-width class to fulfill ellipsis usage requirement --- frappe/public/less/common.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frappe/public/less/common.less b/frappe/public/less/common.less index d967b2756f..0b47b28df3 100644 --- a/frappe/public/less/common.less +++ b/frappe/public/less/common.less @@ -280,3 +280,9 @@ a.no-decoration& { .ellipsis { .text-ellipsis(); } + +/* Given that the element that text-ellipsis is applied to, + should have a max width for it to work */ +.ellipsis-width { + max-width: 200px; +}