diff --git a/_assets/src/components/Main.vue b/_assets/src/components/Main.vue
index 4f4c3172..526c46f8 100644
--- a/_assets/src/components/Main.vue
+++ b/_assets/src/components/Main.vue
@@ -2,7 +2,7 @@
-
-
+
{{ action.icon }}
{{ action.name }}
@@ -48,11 +48,15 @@ export default {
name: 'sidebar',
data: () => {
return {
- plugins: [],
- active: false
+ plugins: []
+ }
+ },
+ computed: {
+ ...mapState(['user']),
+ active () {
+ return this.$store.state.show === 'sidebar'
}
},
- computed: mapState(['user']),
mounted () {
if (window.plugins !== undefined || window.plugins !== null) {
this.plugins = window.plugins
diff --git a/_assets/src/css/mobile.css b/_assets/src/css/mobile.css
index f785e427..0d231783 100644
--- a/_assets/src/css/mobile.css
+++ b/_assets/src/css/mobile.css
@@ -14,14 +14,17 @@
@media (max-width: 736px) {
nav {
top: 0;
- z-index: 9999;
+ z-index: 99999;
background: #fff;
height: 100%;
width: 13em;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
- transition: .2s ease-in-out left;
+ transition: .1s ease left;
left: -14em;
}
+ nav.active {
+ left: 0;
+ }
header .search-button,
header>div:first-child>.action {
display: inherit;