1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 23:38:37 +00:00

Merge pull request #3627 from haiwen/trash-clean-btn

[repo trash] modified ui of 'clean' btn
This commit is contained in:
Daniel Pan 2019-06-06 16:10:58 +08:00 committed by GitHub
commit a3344751a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -31,3 +31,12 @@ body {
color: #000;
background: #dfdfdf;
}
.clean {
border-color: #ccc;
border-radius: 2px;
height: 30px;
line-height: 28px;
font-weight: normal;
padding: 0 0.5rem;
min-width: 55px;
}

View File

@ -215,7 +215,7 @@ class RepoFolderTrash extends React.Component {
<div className="d-flex justify-content-between align-items-center op-bar">
<p className="m-0">{gettext('Current path: ')}{showFolder ? this.renderFolderPath() : repoFolderName}</p>
{(path == '/' && enableClean && !showFolder) &&
<button className="btn btn-secondary" onClick={this.cleanTrash}>{gettext('Clean')}</button>
<button className="btn btn-secondary clean" onClick={this.cleanTrash}>{gettext('Clean')}</button>
}
</div>
<Content