Skip to content
Snippets Groups Projects
Commit c70adb92 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix error at click outside document & fix menu full width

parent a1a9bbf4
No related branches found
No related tags found
1 merge request!47Evol/redmine ticket 11083 full responsive design
......@@ -15,10 +15,7 @@
<div
id="menu-dropdown"
:class="[
'ui dropdown item',
{ 'active visible': menuIsOpen },
]"
:class="['ui dropdown item', { 'active visible': menuIsOpen }]"
@click="menuIsOpen = !menuIsOpen"
>
<!-- empty span to occupy space for style if no project -->
......@@ -27,7 +24,7 @@
</span>
<i class="dropdown icon"></i>
<div
:class="['menu', { 'visible transition': menuIsOpen }]"
:class="['menu dropdown-list', { 'visible transition': menuIsOpen }]"
style="z-index: 401"
>
<router-link
......@@ -207,7 +204,8 @@ export default {
},
clickOutsideMenu(e) {
if (!e.target.closest("#menu-dropdown")) this.menuIsOpen = false;
if (e.target.closest && !e.target.closest("#menu-dropdown"))
this.menuIsOpen = false;
},
},
......@@ -277,8 +275,9 @@ footer {
.desktop {
display: none !important;
}
div.menu {
div.dropdown-list {
width: 100vw;
left: -70px !important; /* should be the same than belows */
}
.menu.container a.header {
width: 70px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment