From 71f79a5bbfe0dd5451a435c0a55e8b77ee7d3848 Mon Sep 17 00:00:00 2001
From: Corentin Thomasset <corentin.thomasset74@gmail.com>
Date: Mon, 18 Apr 2022 08:36:22 +0200
Subject: fix(menu): menu auto closed on mobile

---
 src/components/MenuLayout.vue | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

(limited to 'src/components/MenuLayout.vue')

diff --git a/src/components/MenuLayout.vue b/src/components/MenuLayout.vue
index f5db700..721a14d 100644
--- a/src/components/MenuLayout.vue
+++ b/src/components/MenuLayout.vue
@@ -9,8 +9,6 @@
       :show-trigger="false"
       :native-scrollbar="false"
       :position="siderPosition"
-      @collapse="isMenuCollapsed = true"
-      @expand="isMenuCollapsed = false"
     >
       <slot name="sider" />
     </n-layout-sider>
@@ -36,24 +34,24 @@ const siderPosition = computed(() => isSmallScreen.value ? 'absolute' : 'static'
 
 <style lang="less" scoped>
 .overlay {
-    position: absolute;
-    top: 0;
-    left: 0;
-    width: 100%;
-    height: 100%;
-    background-color: #00000080;
-    cursor: pointer;
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  background-color: #00000080;
+  cursor: pointer;
 }
 
 .content {
 
-    // background-color: #f1f5f9;
-    ::v-deep(.n-layout-scroll-container) {
-        padding: 26px;
-    }
+  // background-color: #f1f5f9;
+  ::v-deep(.n-layout-scroll-container) {
+    padding: 26px;
+  }
 }
 
 .n-layout {
-    height: 100vh;
+  height: 100vh;
 }
 </style>
\ No newline at end of file
-- 
cgit v1.2.3

