mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Web responsive menu improvements (#513)
* Bold titles for apps in the app-drawer * Remove z-index from Control Panel buttons, so it doesn't overlap the menu. * Better responsive menus * Move systray icons/menus out of the menu and up to the top bar. * Increase avatar size and visibility. * Other minor menu behavior fixes. * Changes to fit odoo variables * And a little margin adjust on navbar-right * Top menu always thick * Removed overflow:hidden!important from main.less * Local patch: prevent body overflow auto * Stop using `style=` on `<body>` * Fix jquery drawer in anticipation of: https://github.com/blivesta/drawer/pull/36
This commit is contained in:
committed by
Sergey Shebanin
parent
0eaa516268
commit
b2b97c87e6
@@ -72,7 +72,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse text-center"
|
||||
<div class="collapse navbar-collapse"
|
||||
id="odooMenuBarNav"
|
||||
data-parent="#odooMenuBarToggle"
|
||||
aria-expanded="false"
|
||||
@@ -82,16 +82,12 @@
|
||||
>
|
||||
<t t-call="web.menu_secondary" />
|
||||
</div>
|
||||
<div class="nav navbar-nav navbar-right">
|
||||
<ul class="nav navbar-nav navbar-right oe_user_menu_placeholder"
|
||||
style="display: none;"
|
||||
/>
|
||||
<ul class="nav navbar-nav navbar-right oe_systray"
|
||||
style="display: none;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nav navbar-nav navbar-right navbar-systray o_menu_systray">
|
||||
<ul class="nav navbar-nav navbar-right navbar-systray-item oe_user_menu_placeholder"/>
|
||||
<ul class="nav navbar-nav navbar-right navbar-systray-item oe_systray"/>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
@@ -108,11 +104,17 @@
|
||||
<xpath expr="//div[@class='o_sub_menu_content']/t" position="replace">
|
||||
|
||||
<t t-foreach="menu_data['children']" t-as="menu">
|
||||
<ul class="oe_secondary_menu nav navbar-nav"
|
||||
t-att-data-menu-parent="menu['id']"
|
||||
style="display: none;"
|
||||
>
|
||||
<t t-call="web.menu_secondary_submenu" />
|
||||
<ul style="display: none"
|
||||
class="oe_secondary_menu nav navbar-nav"
|
||||
t-att-data-menu-parent="menu['id']">
|
||||
<li class="app-name">
|
||||
<span class="oe_menu_text">
|
||||
<t t-esc="menu['name']"/>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<t t-call="web.menu_secondary_submenu" />
|
||||
</li>
|
||||
</ul>
|
||||
</t>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user