1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

change context menu style (#6333)

* change menu context style

* change tree view menu context
This commit is contained in:
Michael An
2024-07-17 10:45:53 +08:00
committed by GitHub
parent 47e4bb4573
commit ab56b68887
7 changed files with 55 additions and 44 deletions

View File

@@ -54,6 +54,7 @@ const propTypes = {
fullDirentList: PropTypes.array,
posX: PropTypes.string,
posY: PropTypes.string,
getMenuContainerSize: PropTypes.func,
};
class DirentListView extends React.Component {
@@ -689,16 +690,19 @@ class DirentListView extends React.Component {
<ContextMenu
id={'dirent-container-menu'}
onMenuItemClick={this.onContainerMenuItemClick}
getMenuContainerSize={this.props.getMenuContainerSize}
/>
<ContextMenu
id={'dirent-item-menu'}
onMenuItemClick={this.onMenuItemClick}
onShowMenu={this.onShowMenu}
onHideMenu={this.onHideMenu}
getMenuContainerSize={this.props.getMenuContainerSize}
/>
<ContextMenu
id={'dirents-menu'}
onMenuItemClick={this.onDirentsMenuItemClick}
getMenuContainerSize={this.props.getMenuContainerSize}
/>
{this.state.isShowDirentsDraggablePreview &&
<ModalPortal>