From aed98fb2b274c7696ee180111149e83396aa862b Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Fri, 29 Apr 2022 13:10:59 +0200 Subject: [PATCH] simplify --- src/components/FullVue.vue | 7 +- src/constants/data.ts | 1 - src/layout/components/AppMain.vue | 4 +- src/layout/components/NavBar.vue | 72 ++++----- src/layout/components/SideBar.vue | 191 ++++++++++++------------ src/types/components.d.ts | 5 - src/views/FullScroll.vue | 2 +- src/views/dashboard/controls/Widget.vue | 1 + src/views/dashboard/panel/Tool.vue | 84 +++++------ vue.config.js | 2 +- 10 files changed, 188 insertions(+), 181 deletions(-) diff --git a/src/components/FullVue.vue b/src/components/FullVue.vue index b33d74e1..7b83536c 100644 --- a/src/components/FullVue.vue +++ b/src/components/FullVue.vue @@ -143,6 +143,7 @@ export default defineComponent({ backface-visibility: hidden; perspective: 1000; overflow: hidden; + .scroll-handler__wrapper { z-index: 20; position: fixed; @@ -150,9 +151,10 @@ export default defineComponent({ flex-direction: column; right: 0; // top: 50%; - transform: translateY(60%); + //transform: translateY(60%); height: auto; width: 20px; + .full-scroll-to { opacity: 0.5; width: 10px; @@ -162,6 +164,7 @@ export default defineComponent({ cursor: pointer; background: #4f4f4f; } + .full-scroll-to.active { opacity: 1; padding: 6px; @@ -169,9 +172,11 @@ export default defineComponent({ } } } + .scroll-snap-container::-webkit-scrollbar { display: none; } + .item { // scroll-snap-align: start; height: 100%; diff --git a/src/constants/data.ts b/src/constants/data.ts index 16e1aa72..4aa4f82a 100644 --- a/src/constants/data.ts +++ b/src/constants/data.ts @@ -34,7 +34,6 @@ export const RoutesMap: { [key: string]: string } = { Linux: "OS_LINUX", SkyWalkingServer: "SO11Y_OAP", Satellite: "SO11Y_SATELLITE", - FullScroll: "SO11Y_SATELLITE", Functions: "FAAS", Browser: "BROWSER", KubernetesCluster: "K8S", diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 812a3bff..ec7dbf36 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -36,7 +36,9 @@ if (!appStore.utc) { diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index 499c39d4..8d72c06c 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -12,42 +12,42 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +