mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### 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:
@ -1,3 +1,4 @@
|
||||
.delete {
|
||||
height: 24px;
|
||||
// height: 24px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user