From dd713bee63a7f31c9827afce0471a0a1b360e713 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 28 Oct 2022 15:54:28 +0200 Subject: [PATCH] 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. --- app/styles/base.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/styles/base.css b/app/styles/base.css index af738194..56d1dcf3 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%;