diff --git a/public/assets/css/mediaQueries.css b/public/assets/css/mediaQueries.css index 251d419b..52eca278 100644 --- a/public/assets/css/mediaQueries.css +++ b/public/assets/css/mediaQueries.css @@ -40,6 +40,10 @@ max-width: 100%; } + #showlite-body #asset-status { + padding: 2em; + } + } @media (max-width: 500px) { diff --git a/views/partials/asset.handlebars b/views/partials/asset.handlebars index 1daa502f..76836245 100644 --- a/views/partials/asset.handlebars +++ b/views/partials/asset.handlebars @@ -1,7 +1,7 @@
- - + +
@@ -54,12 +57,11 @@ const searchMessage = document.getElementById('searching-message'); searchMessage.hidden = false; }, - showInProgressMessage: function (msg) { + showInProgressMessage: function () { const searchMessage = document.getElementById('searching-message'); const inProgressMessage = document.getElementById('in-progress-message'); searchMessage.hidden = true; inProgressMessage.hidden = false; - inProgressMessage.innerText = msg; }, showFailureMessage: function (msg) { console.log(msg); @@ -113,9 +115,9 @@ console.log('lbrynet has finished downloading the asset'); that.showAsset(); } else { - console.log('lbrynet is still downloading the asset'); - that.showInProgressMessage(response.message); - setTimeout(that.getAsset, 5000); + console.log('lbrynet has not finished downloading the asset'); + that.showInProgressMessage(); + setTimeout(that.getAsset.bind(that, claimName, claimId), 5000); } } else { console.log('get failed:', response);