Add names to previews and fix the size of images

This commit is contained in:
Prayag
2020-12-11 20:40:45 +05:30
committed by GitHub
parent 6f18c554f7
commit 93b25fc4f1

View File

@@ -81,12 +81,12 @@
function loadPreviews(skin){ function loadPreviews(skin){
var html = ""; var html = "";
skin.previews.forEach(element => { skin.previews.forEach(element => {
html += getImgnames(element.name);
html += getImage(element.url); html += getImage(element.url);
}); });
return html; return html;
} }
function getCheckBox ( option) { function getCheckBox ( option) {
var html = ""; var html = "";
var id = "chkFolder" ; var id = "chkFolder" ;
@@ -157,7 +157,13 @@
} }
function getImage(url){ function getImage(url){
var html = ""; var html = "";
html += '<img src="'+url+'">'; html += '<fieldset class="verticalSection verticalSection-extrabottompadding"><img src="'+url+'">';
return html;
}
function getImgnames(name){
var html = "";
html += '<legend>'+name+'</legend></fieldset>';
return html; return html;
} }
@@ -285,7 +291,11 @@
return false; return false;
}); });
</script> </script>
<style>
img{
width: 100%;
}
</style>
</div> </div>
</body> </body>
</html> </html>