perf: 优化滚动条导致页面抖动的情况

This commit is contained in:
kuaifan 2023-08-18 17:14:27 +08:00
parent 0af07058df
commit 333d4517b5
2 changed files with 2 additions and 66 deletions

View File

@ -534,39 +534,6 @@ body {
.ivu-table-body {
flex: 1;
overflow: auto;
overflow-y: overlay !important;
&::-webkit-scrollbar {
width: 0;
height: 0;
}
&::-webkit-scrollbar-thumb {
border: 3px solid transparent;
background-color: rgba(0, 0, 0, .2);
background-clip: content-box;
border-radius: 12px;
&:hover {
border: 2px solid transparent;
background-color: rgba(0, 0, 0, .2);
}
&:active {
border: 2px solid transparent;
background-color: rgba(0, 0, 0, .4);
}
}
&::-webkit-scrollbar-track {
border-radius: 12px;
background: rgba(0, 0, 0, 0);
}
&:hover {
&::-webkit-scrollbar {
width: 12px;
height: 12px;
}
}
}
}
}

View File

@ -670,7 +670,8 @@
min-width: 220px;
max-width: 280px;
max-height: 360px;
overflow-y: overlay;
overflow-x: hidden;
overflow-y: auto;
&.task-mention {
.ql-mention-list {
@ -688,38 +689,6 @@
}
}
&::-webkit-scrollbar {
width: 0;
height: 0;
}
&::-webkit-scrollbar-thumb {
border: 3px solid transparent;
background-color: rgba(0, 0, 0, .2);
background-clip: content-box;
border-radius: 12px;
&:hover {
border: 2px solid transparent;
background-color: rgba(0, 0, 0, .2);
}
&:active {
border: 2px solid transparent;
background-color: rgba(0, 0, 0, .4);
}
}
&::-webkit-scrollbar-track {
border-radius: 12px;
background: rgba(0, 0, 0, 0);
}
&:hover {
&::-webkit-scrollbar {
width: 12px;
height: 12px;
}
}
.ql-mention-list {
> li {
&:first-child {