Browse Source

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

pull/1066/head
Jairo Llopis 7 years ago
committed by Jairo Llopis
parent
commit
2b584435da
No known key found for this signature in database GPG Key ID: 59564BF1E22F314F
  1. 3
      web_responsive/__manifest__.py
  2. 7
      web_responsive/static/src/less/navbar.less
  3. 11
      web_responsive/static/src/xml/navbar.xml

3
web_responsive/__manifest__.py

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

7
web_responsive/static/src/less/navbar.less

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

11
web_responsive/static/src/xml/navbar.xml

@ -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>
Loading…
Cancel
Save