From 8aff87fdf79ffc1ae9f03dfae92f7a9ecc819a95 Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Tue, 25 Jun 2024 21:20:42 +0000 Subject: [PATCH] fix: add logic for hiding the dropdown of protocol options --- windows-rdp/devolutions-patch.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/windows-rdp/devolutions-patch.js b/windows-rdp/devolutions-patch.js index e700330..c9e25da 100644 --- a/windows-rdp/devolutions-patch.js +++ b/windows-rdp/devolutions-patch.js @@ -381,8 +381,14 @@ function hideFormForInitialSubmission() { $${cssOpacityVariableName}: 0; } - /* web-client-form is the container for the main session form */ - web-client-form { + /* + web-client-form is the container for the main session form, while + the div is for the dropdown that is used for selecting the protocol. + The dropdown is not inside of the form for CSS styling reasons, so we + need to select both. + */ + web-client-form, + body > div.p-overlay { opacity: calc(100% * var($${cssOpacityVariableName})) !important; } `;