[FIX][web_responsive] Long-named multicompanies nice in XS (#688)

pull/2405/head
Jairo Llopis 2017-08-10 12:12:21 +02:00 committed by anjeel.haria
parent 56ffa63a0e
commit a54f6ecc0f
3 changed files with 20 additions and 1 deletions

View File

@ -6,7 +6,7 @@
"name": "Web Responsive", "name": "Web Responsive",
"summary": "It provides a mobile compliant interface for Odoo Community " "summary": "It provides a mobile compliant interface for Odoo Community "
"web", "web",
"version": "10.0.1.0.0", "version": "10.0.1.1.0",
"category": "Website", "category": "Website",
"website": "https://laslabs.com/", "website": "https://laslabs.com/",
"author": "LasLabs, Tecnativa, Odoo Community Association (OCA)", "author": "LasLabs, Tecnativa, Odoo Community Association (OCA)",
@ -21,5 +21,6 @@
], ],
'qweb': [ 'qweb': [
'static/src/xml/form_view.xml', 'static/src/xml/form_view.xml',
'static/src/xml/navbar.xml',
], ],
} }

View File

@ -36,6 +36,13 @@ header {
top: -3.5px; top: -3.5px;
} }
} }
.o_switch_company_menu {
.oe_topbar_name {
@media (max-width: @screen-xs-max) {
display: none;
}
}
}
> .oe_systray > li > a { > .oe_systray > li > a {
.fa { .fa {
position: relative; position: relative;

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<template>
<t t-extend="SwitchCompanyMenu">
<t t-jquery=".oe_topbar_name" t-operation="before">
<i class="fa fa-building visible-xs-inline-block"/>
</t>
</t>
</template>