fix(plugin-workflow): fix workflow version dropdown overflow (#4542)

This commit is contained in:
Junyi 2024-06-02 23:01:35 +08:00 committed by GitHub
parent 63f71994ab
commit 1c990ba0a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 35 deletions

View File

@ -177,8 +177,8 @@ export function WorkflowCanvas() {
/>
</header>
<aside>
<div className="workflow-versions">
<Dropdown
className="workflow-versions"
trigger={['click']}
menu={{
onClick: onSwitchVersion,
@ -211,7 +211,6 @@ export function WorkflowCanvas() {
<DownOutlined />
</Button>
</Dropdown>
</div>
<Switch
checked={workflow.enabled}
onChange={onToggle}

View File

@ -96,6 +96,9 @@ const useStyles = createStyles(({ css, token }) => {
`,
workflowVersionDropdownClass: css`
max-height: 80vh;
overflow-y: auto;
.ant-dropdown-menu-item {
.ant-dropdown-menu-title-content {
strong {