生产管理系统前端 - 多滚动条问题解决

This commit is contained in:
2025-10-23 14:08:59 +08:00
parent f93f9e4d88
commit ce2510d526
2 changed files with 12 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
.bodyFlexUpDown{
overflow-x:hidden;
overflow-y: hidden;
height: 100vh;
display: flex;
flex-direction: column;
@@ -13,6 +15,7 @@
.sidebarScroll{
height: 100%;
overflow-y: auto;
overflow-x:hidden;
}
.sidebarScroll>div{
height: 100%;
@@ -22,3 +25,9 @@
height: 100%;
overflow-y: auto;
}
/* 滚动条颜色变量 */
:root {
--scrollbar-color: #d1d5db;
--scrollbar-hover: #9ca3af;
}

View File

@@ -236,7 +236,7 @@
/* 滚动条样式 */
::-webkit-scrollbar {
width: 6px;
width: 5px;
height: 6px;
}
@@ -245,12 +245,12 @@
}
::-webkit-scrollbar-thumb {
background: rgb(var(--border));
background: hsl(var(--muted-foreground));
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: rgb(var(--muted-foreground));
background: hsl(var(--muted-foreground));
}
/* 动画 */