Use border-box for noVNC panels
If we use box-sizing: border-box we can avoid having to account for the padding when calculcating the max-width.
This commit is contained in:
parent
dd713bee63
commit
6b2357061e
|
@ -422,7 +422,8 @@ html {
|
||||||
|
|
||||||
transition: 0.5s ease-in-out;
|
transition: 0.5s ease-in-out;
|
||||||
|
|
||||||
max-width: calc(100vw - 2*15px - 75px - 25px); /* minus padding, and left and right margins */
|
box-sizing: border-box; /* so max-width don't have to care about padding */
|
||||||
|
max-width: calc(100vw - 75px - 25px); /* minus left and right margins */
|
||||||
max-height: 100vh; /* Chrome is buggy with 100% */
|
max-height: 100vh; /* Chrome is buggy with 100% */
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
Loading…
Reference in New Issue