1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

update upload-list zindex (#2784)

This commit is contained in:
杨顺强
2019-01-08 11:53:53 +08:00
committed by Daniel Pan
parent 93a2be4ada
commit ec24a6c20c
3 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class FileUploader extends React.Component {
isUploadProgressDialogShow: false, isUploadProgressDialogShow: false,
isUploadRemindDialogShow: false, isUploadRemindDialogShow: false,
currentResumableFile: null, currentResumableFile: null,
uploadBitrate: 0 uploadBitrate: '0'
}; };
this.notifiedFolders = []; this.notifiedFolders = [];
@@ -224,7 +224,7 @@ class FileUploader extends React.Component {
if (this.timestamp) { if (this.timestamp) {
let timeDiff = (now - this.timestamp); let timeDiff = (now - this.timestamp);
if (timeDiff < this.bitrateInterval) { if (timeDiff < this.bitrateInterval) {
return this.state.uploadBitrate; return this.state.uploadBitrate;
} }
uploadBitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8; uploadBitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
} }

View File

@@ -4,7 +4,7 @@ import { gettext } from '../../utils/constants';
import UploadListItem from './upload-list-item'; import UploadListItem from './upload-list-item';
const propTypes = { const propTypes = {
uploadBitrate: PropTypes.number.isRequired, uploadBitrate: PropTypes.string.isRequired,
totalProgress: PropTypes.number.isRequired, totalProgress: PropTypes.number.isRequired,
uploadFileList: PropTypes.array.isRequired, uploadFileList: PropTypes.array.isRequired,
onCloseUploadDialog: PropTypes.func.isRequired, onCloseUploadDialog: PropTypes.func.isRequired,

View File

@@ -20,6 +20,7 @@
border-radius: 3px; border-radius: 3px;
box-shadow: 0 0 6px #ddd; box-shadow: 0 0 6px #ddd;
background-color: #fff; background-color: #fff;
z-index: 1050;
} }
.uploader-list-header { .uploader-list-header {