Add 2 pixel padding for term element and set fixed width for element
This commit is contained in:
parent
5b36d75b51
commit
65aff29233
@ -16,7 +16,7 @@ SP.Terminal.prototype = {
|
|||||||
var container = $(".player .term");
|
var container = $(".player .term");
|
||||||
this.element = container;
|
this.element = container;
|
||||||
this.renderLine(0); // we only need 1 line
|
this.renderLine(0); // we only need 1 line
|
||||||
this.element.css({ height: this.element.height() * this.lines });
|
this.element.css({ width: this.element.width(), height: this.element.height() * this.lines });
|
||||||
},
|
},
|
||||||
|
|
||||||
getLine: function(n) {
|
getLine: function(n) {
|
||||||
|
@ -94,7 +94,7 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.term {
|
.term {
|
||||||
padding: 0px;
|
padding: 2px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
display: block;
|
display: block;
|
||||||
font-family: 'Droid Sans Mono', Monospace;
|
font-family: 'Droid Sans Mono', Monospace;
|
||||||
|
Loading…
Reference in New Issue
Block a user