mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 03:35:25 +08:00
Improve file processing indicator [SCI-3938]
This commit is contained in:
parent
86e9456c73
commit
6a6a43f5ff
2 changed files with 10 additions and 4 deletions
|
@ -17,6 +17,8 @@ var ActiveStoragePreviews = (function() {
|
|||
|
||||
if (img.retryCount >= RETRY_COUNT) return;
|
||||
|
||||
if (!$(img).parent().hasClass('processing')) $(img).parent().addClass('processing');
|
||||
|
||||
setTimeout(() => {
|
||||
img.src = src;
|
||||
img.retryCount += 1;
|
||||
|
@ -24,6 +26,7 @@ var ActiveStoragePreviews = (function() {
|
|||
},
|
||||
showPreview: function(ev) {
|
||||
$(ev.target).css('opacity', 1);
|
||||
$(ev.target).parent().removeClass('processing');
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
|
|
@ -1476,7 +1476,7 @@ table.dataTable {
|
|||
line-height: 160px;
|
||||
}
|
||||
|
||||
&:not(.new) {
|
||||
&.processing {
|
||||
background-image: url("/images/medium/processing.gif");
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
|
@ -1525,9 +1525,6 @@ table.dataTable {
|
|||
|
||||
.file-preview-container {
|
||||
align-items: center;
|
||||
background-image: url("/images/medium/processing.gif");
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
color: $gray-dark;
|
||||
display: -moz-flex;
|
||||
display: -webkit-flex;
|
||||
|
@ -1537,6 +1534,12 @@ table.dataTable {
|
|||
text-align: center;
|
||||
width: 60%;
|
||||
|
||||
&.processing {
|
||||
background-image: url("/images/medium/processing.gif");
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
color: $color-black;
|
||||
margin: 30px 0;
|
||||
|
|
Loading…
Reference in a new issue