style: 添加全局滚动条样式

This commit is contained in:
RubyLiu 2023-09-19 10:49:02 +08:00 committed by rubylliu
parent d8473e546f
commit 133388467d
4 changed files with 21 additions and 12 deletions

View File

@ -554,6 +554,18 @@
background-color: var(--color-text-input-border);
}
}
.ms-scroll-bar {
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: var(--color-text-input-border);
}
&::-webkit-scrollbar-thumb:hover {
background: var(--color-text-4);
}
}
/** 开关 **/
.arco-switch:not(.arco-switch-disabled) {

View File

@ -1,5 +1,5 @@
<template>
<div class="flex h-full flex-col overflow-y-auto px-[24px] pb-[24px]">
<div class="ms-ug-left flex h-full flex-col px-[24px] pb-[24px]">
<div class="sticky top-0 z-[999] w-[252px] bg-white pt-[24px]">
<a-input-search
:placeholder="t('system.userGroup.searchHolder')"
@ -480,9 +480,6 @@
</script>
<style lang="less" scoped>
.icon-increase {
background-color: rgb(var(--primary-7));
}
.icon-button {
display: flex;
box-sizing: border-box;

View File

@ -2,7 +2,7 @@
<div class="card">
<div class="flex h-full flex-row">
<Transition>
<div v-if="leftCollapse" class="user-group-left">
<div v-if="leftCollapse" class="user-group-left ms-scroll-bar">
<UserGroupLeft ref="ugLeftRef" @handle-select="handleSelect" />
</div>
</Transition>
@ -168,8 +168,9 @@
}
.user-group-left {
position: relative;
overflow: hidden;
width: 300px;
overflow-x: hidden;
overflow-y: auto;
padding-right: 6px;
min-width: 300px;
height: 100%;
border-right: 1px solid var(--color-border-1);
@ -177,7 +178,6 @@
.usergroup-collapse {
position: absolute;
top: 50%;
left: 300px;
z-index: 101;
display: flex;
justify-content: center;

View File

@ -2,7 +2,7 @@
<div class="card">
<div class="flex h-full flex-row">
<Transition>
<div v-if="leftCollapse" class="user-group-left">
<div v-if="leftCollapse" class="user-group-left ms-scroll-bar">
<UserGroupLeft ref="ugLeftRef" @handle-select="handleSelect" />
</div>
</Transition>
@ -168,8 +168,9 @@
}
.user-group-left {
position: relative;
overflow: hidden;
width: 300px;
overflow-x: hidden;
overflow-y: auto;
padding-right: 6px;
min-width: 300px;
height: 100%;
border-right: 1px solid var(--color-border-1);
@ -177,7 +178,6 @@
.usergroup-collapse {
position: absolute;
top: 50%;
left: 300px;
z-index: 101;
display: flex;
justify-content: center;