summaryrefslogtreecommitdiff
path: root/app/ui.js
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2022-12-15 10:41:00 +0100
committerSamuel Mannehed <samuel@cendio.se>2022-12-15 10:44:27 +0100
commit05baf14256a4640e15cda63cc2ac576f44482775 (patch)
tree8b325ce9109ae3068b9e5043d2b4afce858f055b /app/ui.js
parente7ef963a8f0c9c1be0ce5cc7468dd3e7bd254030 (diff)
downloadnovnc-05baf14256a4640e15cda63cc2ac576f44482775.tar.gz
Remove outer div from noVNC_connect_button
Instead of having an outer "box", we can use an outline on the button itself to create this "platform". Since the outline isn't part of the size of the element, it will appear wider than before, when compared to the logo. To counteract that we remove the left and right padding from the logo to make the entire noVNC_connect_dlg more narrow. We also had to slightly adjust the :active style since we don't want the entire "platform" to move when the button is clicked.
Diffstat (limited to 'app/ui.js')
-rw-r--r--app/ui.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/ui.js b/app/ui.js
index ec508e3..ff0f176 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -318,8 +318,7 @@ const UI = {
addConnectionControlHandlers() {
document.getElementById("noVNC_disconnect_button")
.addEventListener('click', UI.disconnect);
- document.getElementById("noVNC_connect_box")
- .getElementsByTagName('button')[0]
+ document.getElementById("noVNC_connect_button")
.addEventListener('click', UI.connect);
document.getElementById("noVNC_cancel_reconnect_button")
.addEventListener('click', UI.cancelReconnect);