diff --git a/public/assets/css/general.css b/public/assets/css/general.css index bae2a66d..8ca24fdb 100644 --- a/public/assets/css/general.css +++ b/public/assets/css/general.css @@ -67,6 +67,10 @@ p, h3 { font-size: x-large; } +.p--no-top { + margin-top: 0px; +} + .input-text--large, .textarea--large, .title-show, .description-show { font-size: 1.5rem; } diff --git a/views/index.handlebars b/views/index.handlebars index e6269cdc..f065c335 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -79,7 +79,7 @@ uploader.addEventListener('progress', function(event){ var percent = event.bytesLoaded / event.file.size * 100; updatePublishStatus('
File is loading to server
') - updateUploadPercent(`${percent.toFixed(2)}%
`) + updateUploadPercent(`${percent.toFixed(2)}%
`) }); /* socket.io message listeners */ socket.on('publish-update', function(msg){ @@ -127,14 +127,14 @@ function addInputValuesToFileMetaData(event) { // get values from inputs - const name = document.getElementById('claim-name-input').value; - const title = document.getElementById('publish-title').value; - const description = document.getElementById('publish-description').value; - const license = document.getElementById('publish-license').value; + const name = document.getElementById('claim-name-input').value.trim(); + const title = document.getElementById('publish-title').value.trim(); + const description = document.getElementById('publish-description').value.trim(); + const license = document.getElementById('publish-license').value.trim(); const nsfw = document.getElementById('publish-nsfw').checked; const anonymous = document.getElementById('anonymous-select').checked; - const channel = document.getElementById('channel-name-select').value; - const thumbnail = document.getElementById('claim-thumbnail-input').value; + const channel = document.getElementById('channel-name-select').value.trim(); + const thumbnail = document.getElementById('claim-thumbnail-input').value.trim(); // set values on file meta data event.file.meta.name = name; event.file.meta.title = title; diff --git a/views/partials/assetInfo.handlebars b/views/partials/assetInfo.handlebars index 5b87ef66..c1e0268a 100644 --- a/views/partials/assetInfo.handlebars +++ b/views/partials/assetInfo.handlebars @@ -1,8 +1,6 @@ -{{#ifConditional fileInfo.description '!==' ''}} -{{fileInfo.description}}
-{{fileInfo.description}}
+{{/if}}