diff --git a/src/pages/flowEditor/index.tsx b/src/pages/flowEditor/index.tsx index d808589..1315612 100644 --- a/src/pages/flowEditor/index.tsx +++ b/src/pages/flowEditor/index.tsx @@ -671,7 +671,7 @@ const FlowEditor: React.FC = () => { panOnScrollSpeed={0.5} > - + {/**/}
从左侧拖拽节点到画布中
diff --git a/src/pages/ideContainer/sideBar.tsx b/src/pages/ideContainer/sideBar.tsx index 7949b1c..28deaf3 100644 --- a/src/pages/ideContainer/sideBar.tsx +++ b/src/pages/ideContainer/sideBar.tsx @@ -106,7 +106,7 @@ const SideBar: React.FC = ({ onMenuSelect, selectedKey, identity } return (
{menu.map((item, index) => ( @@ -135,13 +135,9 @@ const SideBar: React.FC = ({ onMenuSelect, selectedKey, identity } }} onMoving={handleSubMenuResize} > -
+
{ diff --git a/src/pages/ideContainer/style/sideBar.module.less b/src/pages/ideContainer/style/sideBar.module.less index 71e73af..230b7e8 100644 --- a/src/pages/ideContainer/style/sideBar.module.less +++ b/src/pages/ideContainer/style/sideBar.module.less @@ -6,50 +6,61 @@ background-color: var(--color-bg-2); } -.menu-item { - padding: 12px 4px; - text-align: center; - cursor: pointer; - transition: all 0.3s ease-in-out; - position: relative; - display: flex; - flex-direction: column; - align-items: center; +.menu-container { + .menu-item { + padding: 12px 4px; + text-align: center; + cursor: pointer; + transition: all 0.3s ease-in-out; + position: relative; + display: flex; + flex-direction: column; + align-items: center; - &:hover { - background-color: var(--color-fill-2); - } + &:hover { + background-color: var(--color-fill-2); + } - &-active { - background-color: var(--color-fill-2); - color: rgb(var(--primary-6)); - } -} + &-active { + background-color: var(--color-fill-2); + color: rgb(var(--primary-6)); + } -.menu-item-content { - display: flex; - flex-direction: column; - align-items: center; - width: 100%; -} + .menu-item-content { + display: flex; + flex-direction: column; + align-items: center; + width: 100%; -.menu-item-icon { - display: flex; - align-items: center; - justify-content: center; - font-size: 20px; - min-width: 16px; - margin-bottom: 10px; + .menu-item-icon { + display: flex; + align-items: center; + justify-content: center; + font-size: 20px; + min-width: 16px; + margin-bottom: 10px; + } + + .menu-item-text { + font-size: 14px; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 4; + -webkit-box-orient: vertical; + line-height: 1.2; + width: 100%; + padding: 0 5px; + } + } + } } -.menu-item-text { - font-size: 14px; - text-align: center; - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 4; - -webkit-box-orient: vertical; - line-height: 1.2; +.sub-menu { width: 100%; - padding: 0 5px; + height: 100%; + background-color: #fcfcfc; + border-right: 1px solid #ddd; + position: relative; + border-left: 1px solid #ddd; } \ No newline at end of file