chore: added 6px margin back to body

This commit is contained in:
henne 2020-12-26 22:37:44 +01:00
parent 7815d08216
commit 14ed9adc52
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
<script src="script.js" ></script>
<style type="text/css">
body {
padding: 0;
padding: 6px;
background-color: black;
color: #eeeeee;
}

View File

@ -40,8 +40,8 @@ function initHtml(rows, cols) {
console.log(windowHeight);
let margin = 6; // 3px margin on each side
let maxWidth = windowWidth / 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 maxWidth = (windowWidth-12) / cols - margin
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) {
videoSize.width = maxWidth;