Mobile and help improvements

pull/144/head
Henrique Dias 2017-07-04 12:11:43 +01:00
parent 990cadd744
commit 2104b8b897
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
5 changed files with 24 additions and 1 deletions

View File

@ -36,7 +36,7 @@
</button> </button>
</div> </div>
<p class="credits">Served with <a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">File Manager</a>.</p> <p class="credits">Served with <a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">File Manager</a>.<br><a @click="help">Help</a></p>
</nav> </nav>
</template> </template>
@ -59,6 +59,9 @@ export default {
} }
}, },
methods: { methods: {
help: function () {
this.$store.commit('showPrompt', 'help')
},
logout: auth.logout logout: auth.logout
} }
} }

View File

@ -212,3 +212,4 @@ header > div:last-child {
#search:-ms-input-placeholder { #search:-ms-input-placeholder {
color: rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .5);
} }

View File

@ -0,0 +1,12 @@
@media (max-width: 1024px) {
nav {
width: 10em
}
}
@media (max-width: 1024px) {
#listing.list .item.header,
main {
width: calc(100% - 13em)
}
}

View File

@ -185,6 +185,7 @@
.credits a, .credits a,
.credits a:hover { .credits a:hover {
color: inherit; color: inherit;
cursor: pointer;
} }
@ -198,3 +199,5 @@
transform: rotate(-360deg); transform: rotate(-360deg);
} }
} }
@import './mobile.css';

View File

@ -42,6 +42,10 @@ const router = new Router({
path: '/files/*', path: '/files/*',
name: 'Files' name: 'Files'
}, },
{
path: '/dashboard',
name: 'Dashboard'
},
{ {
path: '/*', path: '/*',
redirect: { redirect: {