feat: modify the style of the operator #918 (#1335)

### What problem does this PR solve?

feat: modify the style of the operator #918
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-01 18:58:51 +08:00
committed by GitHub
parent b5389f487c
commit 5fa3c2bdce
10 changed files with 134 additions and 74 deletions

View File

@ -1,3 +1,4 @@
.delete {
height: 24px;
// height: 24px;
display: inline-block;
}

View File

@ -10,6 +10,7 @@ interface IProps {
deleteItem: () => Promise<any> | void;
iconFontSize?: number;
items?: MenuProps['items'];
height?: number;
}
const OperateDropdown = ({
@ -17,6 +18,7 @@ const OperateDropdown = ({
children,
iconFontSize = 30,
items: otherItems = [],
height = 24,
}: React.PropsWithChildren<IProps>) => {
const { t } = useTranslation();
const showDeleteConfirm = useShowDeleteConfirm();
@ -59,7 +61,12 @@ const OperateDropdown = ({
<span className={styles.delete}>
<MoreOutlined
rotate={90}
style={{ fontSize: iconFontSize, color: 'gray', cursor: 'pointer' }}
style={{
fontSize: iconFontSize,
color: 'gray',
cursor: 'pointer',
height,
}}
/>
</span>
)}