1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

adjust button group (#3147)

This commit is contained in:
Michael An
2019-03-20 14:49:16 +08:00
committed by Daniel Pan
parent 513e90d55c
commit 1c417e9e71
2 changed files with 16 additions and 12 deletions

View File

@@ -298,16 +298,15 @@ class MutipleDirOperationToolbar extends React.Component {
<Button className="secondary group-op-item action-icon sf2-icon-copy" title={gettext('Copy')} onClick={this.onCopyToggle}></Button> <Button className="secondary group-op-item action-icon sf2-icon-copy" title={gettext('Copy')} onClick={this.onCopyToggle}></Button>
<Button className="secondary group-op-item action-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemsDelete}></Button> <Button className="secondary group-op-item action-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemsDelete}></Button>
<Button className="secondary group-op-item action-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemsDownload}></Button> <Button className="secondary group-op-item action-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemsDownload}></Button>
{this.props.selectedDirentList.length > 0 &&
<DirentsMenu
dirents={this.props.selectedDirentList}
currentRepoInfo={this.props.currentRepoInfo}
isRepoOwner={this.props.isRepoOwner}
onMenuItemClick={this.onMenuItemClick}
/>
}
</ButtonGroup> </ButtonGroup>
{
this.props.selectedDirentList.length > 0 &&
<DirentsMenu
dirents={this.props.selectedDirentList}
currentRepoInfo={this.props.currentRepoInfo}
isRepoOwner={this.props.isRepoOwner}
onMenuItemClick={this.onMenuItemClick}
/>
}
</div> </div>
{this.state.isMoveDialogShow && {this.state.isMoveDialogShow &&
<MoveDirentDialog <MoveDirentDialog

View File

@@ -3,8 +3,13 @@
margin-left: -9px; margin-left: -9px;
padding: 4px 15px; padding: 4px 15px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-top-right-radius: 2px; border-top-right-radius: 2px !important;
border-bottom-right-radius: 2px; border-bottom-right-radius: 2px !important;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
} width: 46px;
}
.dirents-more-menu:hover {
background-color: #fff;
border: 1px solid #ccc;
}