chore: added 6px margin back to body
This commit is contained in:
parent
7815d08216
commit
14ed9adc52
|
@ -11,7 +11,7 @@
|
||||||
<script src="script.js" ></script>
|
<script src="script.js" ></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
padding: 0;
|
padding: 6px;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
color: #eeeeee;
|
color: #eeeeee;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,8 +40,8 @@ function initHtml(rows, cols) {
|
||||||
console.log(windowHeight);
|
console.log(windowHeight);
|
||||||
let margin = 6; // 3px margin on each side
|
let margin = 6; // 3px margin on each side
|
||||||
|
|
||||||
let maxWidth = windowWidth / cols - margin
|
let maxWidth = (windowWidth-12) / cols - margin
|
||||||
let maxHeight = windowHeight / rows - margin - 24 - 28 - 6; // 24 -> size added for nametag; 28px per row for control elements; idontknow where the 6px appear xD
|
let maxHeight = (windowHeight-12) / rows - margin - 24 - 28 - 6; // 24 -> size added for nametag; 28px per row for control elements; idontknow where the 6px appear xD
|
||||||
|
|
||||||
if(maxWidth/16*9 <= maxHeight) {
|
if(maxWidth/16*9 <= maxHeight) {
|
||||||
videoSize.width = maxWidth;
|
videoSize.width = maxWidth;
|
||||||
|
|
Loading…
Reference in New Issue