diff --git a/console.snapshot.js b/console.snapshot.js index cf141ff..4eabc11 100644 --- a/console.snapshot.js +++ b/console.snapshot.js @@ -20,8 +20,8 @@ */ function getBox(width, height) { return { - string: "+", - style: "font-size: 1px; padding: " + Math.floor(height/2) + "px " + Math.floor(width/2) + "px; line-height: " + height + "px;" + string: "", + style: "font-size: 1px; padding-left: "+width+"px; padding-bottom: "+height+"px;" } } @@ -197,7 +197,7 @@ img.onload = function() { var dim = getBox(this.width * scale, this.height * scale); - console.log("%c" + dim.string, dim.style + "background-image: url(" + url + "); background-size: " + (this.width * scale) + "px " + (this.height * scale) + "px; color: transparent;"); + console.log("%c" + dim.string, dim.style + "background-image: url(" + url + "); background-size: " + (this.width * scale) + "px " + (this.height * scale) + "px; color: transparent;background-repeat: no-repeat!important"); if(callback) callback(); }; @@ -217,7 +217,7 @@ scale = scale || 1, dim = getBox(width * scale, height * scale); - console.log("%c" + dim.string, dim.style + "background-image: url(" + url + "); background-size: " + (width * scale) + "px " + (height * scale) + "px; color: transparent;"); + console.log("%c" + dim.string, dim.style + "background-image: url(" + url + "); background-size: " + (width * scale) + "px " + (height * scale) + "px; color: transparent;background-repeat: no-repeat!important"); }; /**