From e46b560ead02ab5d9df8edbb997c56b835aa21d4 Mon Sep 17 00:00:00 2001 From: shpuld Date: Sun, 23 Dec 2018 19:50:19 +0200 Subject: [PATCH] move closing logic to drawer, add swipe to close --- src/App.js | 5 +- src/App.vue | 14 ++--- src/components/side_drawer/side_drawer.js | 32 ++++++++--- src/components/side_drawer/side_drawer.vue | 67 +++++++++++----------- src/components/user_finder/user_finder.vue | 22 +++---- 5 files changed, 78 insertions(+), 62 deletions(-) diff --git a/src/App.js b/src/App.js index 728c8e54..68fae50e 100644 --- a/src/App.js +++ b/src/App.js @@ -30,8 +30,7 @@ export default { window.CSS.supports('-moz-mask-size', 'contain') || window.CSS.supports('-ms-mask-size', 'contain') || window.CSS.supports('-o-mask-size', 'contain') - ), - showMobileSidebar: false + ) }), created () { // Load the locale from the storage @@ -93,7 +92,7 @@ export default { this.finderHidden = hidden }, toggleMobileSidebar () { - this.showMobileSidebar = !this.showMobileSidebar + this.$refs.sideDrawer.toggleDrawer() } } } diff --git a/src/App.vue b/src/App.vue index 55cac52c..59398a34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,9 +14,9 @@
- - - + + +
@@ -25,17 +25,11 @@
-