From 28d59a046a4a725d24033ab97576d30903b5f3ae Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 19 Jul 2013 17:50:25 +0530 Subject: [PATCH] [minor] [fix] [navbar] replace overflow with ellipsis --- public/js/conf.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/public/js/conf.js b/public/js/conf.js index 22e80c98d8..330a2beaaf 100644 --- a/public/js/conf.js +++ b/public/js/conf.js @@ -15,9 +15,16 @@ wn.modules_path = 'erpnext'; // add toolbar icon $(document).bind('toolbar_setup', function() { - $('.navbar-brand').html('
\ + var brand = ($("
").append(wn.boot.website_settings.brand_html).text() || 'erpnext'); + $('.navbar-brand').html('
\ \ -
' + ($("
").append(wn.boot.website_settings.brand_html).text() || 'erpnext')) +
' + brand) + .attr("title", brand) .addClass("navbar-icon-home") - .css('max-width', '200px').css('overflow', 'hidden'); + .css({ + "max-width": "200px", + "overflow": "hidden", + "text-overflow": "ellipsis", + "white-space": "nowrap" + }); });