From e78677303c42ed3723ef90b91324a6c708176aa6 Mon Sep 17 00:00:00 2001 From: yyh <24493052+yongheng2016@users.noreply.github.com> Date: Fri, 22 Nov 2024 21:26:42 +0800 Subject: [PATCH] fix: update windows scrollbar style --- package.json | 2 +- src/styles/global.scss | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2b7d15d..3b3e8b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bytetrade/ui", - "version": "0.1.31", + "version": "0.1.32", "private": false, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/styles/global.scss b/src/styles/global.scss index 831b34a..8f4fbae 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -1,4 +1,17 @@ -body.olares-windows ::-webkit-scrollbar { - width: 0 !important; - height: 0 !important; -} \ No newline at end of file +body.olares-windows { + ::-webkit-scrollbar { + width: 6px; + height: 8px; + background-color: rgba(255, 255, 255, 0); + } + + ::-webkit-scrollbar-thumb { + background-color: #bcbdbe; + border-radius: 999px; + } + ::-webkit-scrollbar-track { + background: rgba(255, 255, 255, 0); + } +} + +