1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +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,9 +298,7 @@ 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-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>
</ButtonGroup>
{
this.props.selectedDirentList.length > 0 &&
{this.props.selectedDirentList.length > 0 &&
<DirentsMenu
dirents={this.props.selectedDirentList}
currentRepoInfo={this.props.currentRepoInfo}
@@ -308,6 +306,7 @@ class MutipleDirOperationToolbar extends React.Component {
onMenuItemClick={this.onMenuItemClick}
/>
}
</ButtonGroup>
</div>
{this.state.isMoveDialogShow &&
<MoveDirentDialog

View File

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