Show More
@@ -29,7 +29,7 b' require([' | |||
|
29 | 29 | var header = $("#header")[0] |
|
30 | 30 | function calculate_size() { |
|
31 | 31 | height = window.innerHeight - header.offsetHeight; |
|
32 |
width = |
|
|
32 | width = $('#terminado-container').width(); | |
|
33 | 33 | var rows = Math.min(1000, Math.max(20, Math.floor(height/termRowHeight())-1)); |
|
34 | 34 | var cols = Math.min(1000, Math.max(40, Math.floor(width/termColWidth())-1)); |
|
35 | 35 | console.log("resize to :", rows , 'rows by ', cols, 'columns'); |
@@ -1,10 +1,19 b'' | |||
|
1 | 1 | .terminal { |
|
2 | 2 | float: left; |
|
3 | 3 | border: black solid 5px; |
|
4 | font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; | |
|
4 | font-family: monospace; | |
|
5 | 5 | font-size: 11px; |
|
6 | 6 | color: white; |
|
7 | 7 | background: black; |
|
8 | border-radius: 2px; | |
|
9 | box-shadow: 0px 4px 11px 0px gray; | |
|
10 | border: 0px; | |
|
11 | padding: @code_padding; | |
|
12 | ||
|
13 | &, dummy-screen { | |
|
14 | line-height: @code_line_height; | |
|
15 | font-size: @notebook_font_size; | |
|
16 | } | |
|
8 | 17 | } |
|
9 | 18 | |
|
10 | 19 | .terminal-cursor { |
@@ -13,5 +22,5 b'' | |||
|
13 | 22 | } |
|
14 | 23 | |
|
15 | 24 | #terminado-container { |
|
16 | margin: 8px; | |
|
25 | padding-top: 20px; | |
|
17 | 26 | } |
General Comments 0
You need to be logged in to leave comments.
Login now