1
This commit is contained in:
parent
d0fa3c9235
commit
f3058cd7c9
@ -30,20 +30,23 @@
|
||||
display: flex;
|
||||
padding: 16px;
|
||||
gap: 16px;
|
||||
overflow: hidden; // 防止外层出现滚动条
|
||||
|
||||
.sidebar {
|
||||
width: 280px;
|
||||
flex-shrink: 0;
|
||||
border-right: 1px solid #f0f0f0;
|
||||
overflow-y: auto;
|
||||
background: #fff;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden; // 防止sidebar本身出现滚动条
|
||||
|
||||
:global {
|
||||
.ant-collapse {
|
||||
border: none;
|
||||
background: transparent;
|
||||
flex: 1;
|
||||
overflow-y: auto; // 只在折叠面板内部显示滚动条
|
||||
|
||||
.ant-collapse-item {
|
||||
border-radius: 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user