From 013b2173fdce47244ae95a41cfedb28f241cefeb Mon Sep 17 00:00:00 2001
From: Jacob Lee <43327024+DesnLee@users.noreply.github.com>
Date: Fri, 24 Jun 2022 22:15:06 +0800
Subject: [PATCH] Fix: fix the issue that speed dial auto-adaptation theme does
not work and is overwritten (#130)
---
web/src/App.vue | 10 ++++-
web/src/components/FloatMenu.vue | 64 +++++++++++++++-----------------
web/src/store/index.js | 8 +++-
web/src/views/SubEditor.vue | 24 ++++++++----
4 files changed, 62 insertions(+), 44 deletions(-)
diff --git a/web/src/App.vue b/web/src/App.vue
index 9638852..1ab3118 100644
--- a/web/src/App.vue
+++ b/web/src/App.vue
@@ -4,7 +4,7 @@
-
+
{{ successMessage }}
@@ -66,6 +66,12 @@ export default {
}
},
+ mounted (){
+ const bottomNavBar = this.$refs.bottomNavBar.$el;
+ const height = bottomNavBar.offsetHeight || bottomNavBar.clientHeight;
+ this.$store.commit("SET_BOTTOM_NAVBAR_HEIGHT", height);
+ },
+
computed: {
successMessage() {
return this.$store.state.successMessage;
@@ -104,4 +110,4 @@ export default {
\ No newline at end of file
+
diff --git a/web/src/components/FloatMenu.vue b/web/src/components/FloatMenu.vue
index 1b752c7..5b0524f 100644
--- a/web/src/components/FloatMenu.vue
+++ b/web/src/components/FloatMenu.vue
@@ -1,23 +1,19 @@
+