From f3058cd7c95f9829c754621f43fca783906bdedf Mon Sep 17 00:00:00 2001 From: asp_ly Date: Sat, 14 Dec 2024 13:48:14 +0800 Subject: [PATCH] 1 --- frontend/src/pages/Workflow/Definition/Design/index.less | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Workflow/Definition/Design/index.less b/frontend/src/pages/Workflow/Definition/Design/index.less index ab5da4e6..0da3cccf 100644 --- a/frontend/src/pages/Workflow/Definition/Design/index.less +++ b/frontend/src/pages/Workflow/Definition/Design/index.less @@ -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;