diff --git a/index.js b/index.js index b29e170..3bfe2d6 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ async function main() // Worker process list const master = new Map(); - const coreCount = 3 //os.cpus().length; + const coreCount = 1 //os.cpus().length; for(let index = 0; index < coreCount; index++) { // Open slave process diff --git a/public/index.css b/public/index.css index d5adbf1..39bd8dd 100644 --- a/public/index.css +++ b/public/index.css @@ -4,36 +4,49 @@ html,body{ } body{ background-color: #141414; + overflow: hidden; +} +*{ + box-sizing: border-box; } .root{ gap: 10px; - padding: 0px; + padding: 10px; height: 100%; display: flex; flex-wrap: nowrap; flex-direction: row; box-sizing: border-box; + overflow: hidden; } .videolist{ - padding-right: 10px; - cursor: pointer; width: 100%; height: 100%; display: grid; - grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(40vh, 1fr)); grid-template-rows: repeat(auto-fit, minmax(23vh, 1fr)); - gap: 5px; + gap: 10px; justify-content: center; align-items: center; + overflow: hidden; } .videolist .frame{ - border: solid 3px transparent; - aspect-ratio: 16 / 9; + border: solid 2px white; width: 100%; - object-fit: contain; + height: 100%; max-width: 100%; max-height: 100%; align-items: center; + border-radius: 20px; + box-sizing: border-box; + padding: 1px; + overflow: hidden; + position: relative; +} +.videolist .frame > video{ + width: 100%; + height: 100%; + object-fit: cover; } .videolist .frame.active{ border: solid 3px green; @@ -53,4 +66,35 @@ video{ background-color: #ffffff1f; } +.tool-container{ + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; +} +.tool-container > .tools{ + margin: auto; + background-color: rgba(0, 0, 0, 0.5); + border-radius: 10px; + overflow: hidden; +} +.tool-container > .tools > button{ + border: none; + color: white; + vertical-align: middle; + cursor: pointer; + padding: 0 10px; +} +.tool-container > .tools > button:not(:hover){ + background-color: transparent; +} +.tool-container > .tools > button:hover{ + background-color: rgba(255,255,255,0.2); +} +.tool-container > .tools > button i{ + vertical-align: middle; + line-height: 2; +} diff --git a/public/index.html b/public/index.html index 0a0ce96..e6185c9 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@