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 @@ ...@@ -15,10 +15,7 @@
<div <div
id="menu-dropdown" id="menu-dropdown"
:class="[ :class="['ui dropdown item', { 'active visible': menuIsOpen }]"
'ui dropdown item',
{ 'active visible': menuIsOpen },
]"
@click="menuIsOpen = !menuIsOpen" @click="menuIsOpen = !menuIsOpen"
> >
<!-- empty span to occupy space for style if no project --> <!-- empty span to occupy space for style if no project -->
...@@ -27,7 +24,7 @@ ...@@ -27,7 +24,7 @@
</span> </span>
<i class="dropdown icon"></i> <i class="dropdown icon"></i>
<div <div
:class="['menu', { 'visible transition': menuIsOpen }]" :class="['menu dropdown-list', { 'visible transition': menuIsOpen }]"
style="z-index: 401" style="z-index: 401"
> >
<router-link <router-link
...@@ -207,7 +204,8 @@ export default { ...@@ -207,7 +204,8 @@ export default {
}, },
clickOutsideMenu(e) { 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 { ...@@ -277,8 +275,9 @@ footer {
.desktop { .desktop {
display: none !important; display: none !important;
} }
div.menu { div.dropdown-list {
width: 100vw; width: 100vw;
left: -70px !important; /* should be the same than belows */
} }
.menu.container a.header { .menu.container a.header {
width: 70px; 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