From 1aad4ef2346e336af82268ebf6dcddad1a4bde0e Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Oct 2022 01:42:13 +0200 Subject: refactor: apply style to new app menu --- src-vue/src/App.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src-vue/src') diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index 97a11539..45329fc1 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -22,7 +22,7 @@ export default { // Enable dragging entire app by dragging menu bar. // https://github.com/tauri-apps/tauri/issues/1656#issuecomment-1161495124 - document.querySelector(".el-tabs__nav-scroll")!.addEventListener("mousedown", async e => { + document.querySelector("#fc__menu_bar")!.addEventListener("mousedown", async e => { if ((e.target as Element).closest(".el-menu-item")) return; // Disable drag when clicking menu items. await tauriWindow.appWindow.startDragging(); }); @@ -48,7 +48,8 @@ export default { default-active="/" mode="horizontal" @select="handleSelect" - class="el-menu-demo fc_menu__tabs el-tabs__nav-scroll" + id="fc__menu_bar" + class="el-menu-demo el-tabs__nav-scroll" > Play Changelog @@ -66,33 +67,35 @@ export default {