diff options
author | Samuel Mannehed <samuel@cendio.se> | 2022-10-28 15:54:28 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2022-10-28 15:54:28 +0200 |
commit | dd713bee63a7f31c9827afce0471a0a1b360e713 (patch) | |
tree | fb9d689ff7d07eea4b732d4fa0c7e396310bc6f2 | |
parent | 2d559fb2e11b37c413171698a4bc197504a328d0 (diff) | |
download | novnc-dd713bee63a7f31c9827afce0471a0a1b360e713.tar.gz |
Set max-width on all noVNC panels
All panels should be limited in this way, not just the clipboard panel.
One additional upside of this is that the numbers used to calculate the
max-width are closer by, in the code. This hopefully makes it easier to
avoid mistakes in the future.
-rw-r--r-- | app/styles/base.css | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/styles/base.css b/app/styles/base.css index af73819..56d1dcf 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -422,6 +422,7 @@ html { transition: 0.5s ease-in-out; + max-width: calc(100vw - 2*15px - 75px - 25px); /* minus padding, and left and right margins */ max-height: 100vh; /* Chrome is buggy with 100% */ overflow-x: hidden; overflow-y: auto; @@ -568,10 +569,6 @@ html { :root:not(.noVNC_connected) #noVNC_clipboard_button { display: none; } -#noVNC_clipboard { - /* Full screen, minus padding and left and right margins */ - max-width: calc(100vw - 2*15px - 75px - 25px); -} #noVNC_clipboard_text { width: 500px; max-width: 100%; |