summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-12-13 11:52:00 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-12-13 11:52:00 +0100
commit96231a7ddbd228cbc8e27040c974771e84d57d49 (patch)
tree48a13842031e623ca1b479641fa9a5316cfec264 /addons/web/static/src/css
parent03f81db942a1e2e9891824638255d0d0c0f355af (diff)
[FIX] problem when the user has a long name, the top bar will expand on two lines
lp bug: https://launchpad.net/bugs/1083976 fixed bzr revid: nicolas.vanhoren@openerp.com-20121213105200-e806966yi03vxsjx
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css8
-rw-r--r--addons/web/static/src/css/base.sass7
2 files changed, 15 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index ee0fe56e35b..c71e26adb48 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -1069,6 +1069,14 @@
-webkit-box-shadow: none;
box-shadow: none;
}
+.openerp .oe_topbar .oe_topbar_name {
+ max-width: 150px;
+ overflow: hidden;
+ display: inline-block;
+ max-height: 100%;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
.openerp .oe_menu {
float: left;
padding: 0;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index f6df43394c9..8efc85c2a04 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -870,6 +870,13 @@ $sheet-padding: 16px
&:hover
@include vertical-gradient(#292929, #191919)
@include box-shadow(none)
+ .oe_topbar_name
+ max-width: 150px
+ overflow: hidden
+ display: inline-block
+ max-height: 100%
+ text-overflow: ellipsis
+ white-space: nowrap
// oe menu is the list of the buttons on the left side of the bar.
// So why aren't the buttons oe_topbar_items ? This sad state of affairs