From 8b6d3a72e8ae7f7406aafae72167403b2fedf160 Mon Sep 17 00:00:00 2001 From: vince Date: Tue, 16 Jul 2024 23:13:03 +0800 Subject: [PATCH] fix: style optimization --- .../@core/shared/design/src/css/global.css | 15 +++++++++++ .../src/components/layout-tabbar.vue | 2 +- .../ui-kit/layout-ui/src/vben-layout.vue | 2 +- .../src/components/tabs-chrome/tabs.vue | 26 +++++++++---------- .../tabs-ui/src/components/tabs/tabs.vue | 10 +++---- packages/effects/layouts/src/basic/layout.vue | 1 + .../layouts/src/basic/tabbar/tabbar.vue | 3 ++- 7 files changed, 38 insertions(+), 21 deletions(-) diff --git a/packages/@core/shared/design/src/css/global.css b/packages/@core/shared/design/src/css/global.css index ec819f3e..a03a5f93 100644 --- a/packages/@core/shared/design/src/css/global.css +++ b/packages/@core/shared/design/src/css/global.css @@ -41,6 +41,7 @@ body { min-height: 100vh; + overflow: overlay; -webkit-font-smoothing: antialiased; } @@ -88,6 +89,20 @@ input[type='number']::-webkit-outer-spin-button { @apply m-0 appearance-none; } + + /* 考虑只在mac下打开 */ + + /* *::-webkit-scrollbar { + @apply h-[1px] w-[10px]; + } + + *::-webkit-scrollbar-thumb { + @apply bg-border rounded-sm border-none; + } + + *::-webkit-scrollbar-track { + @apply rounded-sm border-none bg-transparent shadow-none; + } */ } @layer components { diff --git a/packages/@core/ui-kit/layout-ui/src/components/layout-tabbar.vue b/packages/@core/ui-kit/layout-ui/src/components/layout-tabbar.vue index e741f8d3..ca189af2 100644 --- a/packages/@core/ui-kit/layout-ui/src/components/layout-tabbar.vue +++ b/packages/@core/ui-kit/layout-ui/src/components/layout-tabbar.vue @@ -26,7 +26,7 @@ const style = computed((): CSSProperties => {