diff --git a/app/styles/base.css b/app/styles/base.css index ae9768d0..fd78b79c 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -635,7 +635,7 @@ select:active { } /* Extra manual keys */ -:root:not(.noVNC_connected) #noVNC_extra_keys { +:root:not(.noVNC_connected) #noVNC_toggle_extra_keys_button { display: none; } @@ -663,9 +663,6 @@ select:active { :root:not(.noVNC_connected) #noVNC_clipboard_button { display: none; } -:root:not(.noVNC_connected) #noVNC_clipboard { - display: none; -} #noVNC_clipboard { /* Full screen, minus padding and left and right margins */ max-width: calc(100vw - 2*15px - 75px - 25px); diff --git a/app/ui.js b/app/ui.js index 61ddffe0..7207b2ff 100644 --- a/app/ui.js +++ b/app/ui.js @@ -445,7 +445,9 @@ const UI = { UI.keepControlbar(); } - // State change closes the password dialog + // State change closes dialogs as they may not be relevant + // anymore + UI.closeAllPanels(); document.getElementById('noVNC_credentials_dlg') .classList.remove('noVNC_open'); }, @@ -1016,7 +1018,6 @@ const UI = { return; } - UI.closeAllPanels(); UI.closeConnectPanel(); UI.updateVisualState('connecting'); @@ -1054,7 +1055,6 @@ const UI = { }, disconnect() { - UI.closeAllPanels(); UI.rfb.disconnect(); UI.connected = false; diff --git a/vnc.html b/vnc.html index a1bbb219..0f2a3b35 100644 --- a/vnc.html +++ b/vnc.html @@ -111,32 +111,30 @@ -
- -
-
- - - - - - -
-
+ +
+
+ + + + + + +