1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +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

@@ -52,6 +52,7 @@ const propTypes = {
posX: PropTypes.number,
posY: PropTypes.number,
dirent: PropTypes.object,
getMenuContainerSize: PropTypes.func,
};
class DirentGridView extends React.Component {
@@ -539,10 +540,12 @@ class DirentGridView extends React.Component {
<ContextMenu
id={'grid-item-contextmenu'}
onMenuItemClick={this.onMenuItemClick}
getMenuContainerSize={this.props.getMenuContainerSize}
/>
<ContextMenu
id={'dirent-grid-container-menu'}
onMenuItemClick={this.onMenuItemClick}
getMenuContainerSize={this.props.getMenuContainerSize}
/>
{this.state.isCreateFolderDialogShow && (
<ModalPortal>