fix: menu on mobile devices
This commit is contained in:
parent
57c585ac63
commit
010eca1d0c
2 changed files with 13 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="content-auth" :class="{'modal-active': modalActive}">
|
||||
<div class="content-auth" :class="{'z-unset': modalActive}">
|
||||
<BaseButton
|
||||
v-if="menuActive"
|
||||
@click="$store.commit('menuActive', false)"
|
||||
|
@ -306,10 +306,11 @@ store.dispatch('labels/loadAllLabels')
|
|||
.content-auth {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&.modal-active {
|
||||
z-index: unset;
|
||||
}
|
||||
|
||||
.is-touch .content-auth,
|
||||
.content-auth.z-unset {
|
||||
z-index: unset;
|
||||
}
|
||||
|
||||
@include modal-transition();
|
||||
|
|
|
@ -257,6 +257,7 @@ function updateActiveLists(namespace: NamespaceModel, activeLists: ListModel[])
|
|||
}
|
||||
|
||||
const listUpdating = ref<{ [id: NamespaceModel['id']]: boolean }>({})
|
||||
|
||||
async function saveListPosition(e: SortableEvent) {
|
||||
if (!e.newIndex) return
|
||||
|
||||
|
@ -294,7 +295,6 @@ $vikunja-nav-color: var(--grey-700);
|
|||
$vikunja-nav-selected-width: 0.4rem;
|
||||
|
||||
.namespace-container {
|
||||
z-index: 6;
|
||||
background: $vikunja-nav-background;
|
||||
color: $vikunja-nav-color;
|
||||
padding: 0 0 1rem;
|
||||
|
@ -307,10 +307,10 @@ $vikunja-nav-selected-width: 0.4rem;
|
|||
overflow-x: auto;
|
||||
width: $navbar-width;
|
||||
|
||||
|
||||
@media screen and (max-width: $tablet) {
|
||||
top: 0;
|
||||
width: 70vw;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
|
|
Loading…
Reference in a new issue