From 75421ea39f0c3bcd0838a65d98e87bea39d58621 Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Wed, 28 Feb 2024 15:35:10 +0800 Subject: [PATCH] optimise search | list --- public/vcd.css | 14 ++++++-- src/components/sidebar.vue | 2 +- src/components/treeview/index.vue | 22 +++++++----- src/components/treeview/modules.vue | 4 +-- src/components/treeview/search.vue | 54 +++++++++++++++++++---------- src/components/treeview/signals.vue | 10 ++++-- 6 files changed, 73 insertions(+), 33 deletions(-) diff --git a/public/vcd.css b/public/vcd.css index af18a6c..941f614 100644 --- a/public/vcd.css +++ b/public/vcd.css @@ -21,7 +21,7 @@ body::-webkit-scrollbar { } ::-webkit-scrollbar { - width: 15px; + width: 12px; } ::-webkit-scrollbar-track { @@ -29,7 +29,17 @@ body::-webkit-scrollbar { } ::-webkit-scrollbar-thumb { - background: #3D4450; + background: var(--scrollbar-background); + border-radius: .3em; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--scrollbar-hover); + border-radius: .3em; +} + +::-webkit-scrollbar-thumb:active { + background: var(--scrollbar-active); border-radius: .3em; } diff --git a/src/components/sidebar.vue b/src/components/sidebar.vue index 5c320e4..0b85e8c 100644 --- a/src/components/sidebar.vue +++ b/src/components/sidebar.vue @@ -55,7 +55,7 @@ export default { margin: 10px; padding: 10px 25px; background-color: var(--color-deepPurple); - border-radius: 0 0 1.5em 1.5em; + border-radius: 0 0 .8em .8em; color: var(--sidebar-item-text); cursor: pointer; display: flex; diff --git a/src/components/treeview/index.vue b/src/components/treeview/index.vue index 8ed46c0..a0f0954 100644 --- a/src/components/treeview/index.vue +++ b/src/components/treeview/index.vue @@ -7,10 +7,13 @@