This commit is contained in:
asp_ly 2024-12-14 13:48:14 +08:00
parent d0fa3c9235
commit f3058cd7c9

View File

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