From f19c7ff6e5f1a0fca6de8cdf98baab710a2cc705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Thu, 2 Nov 2023 09:39:01 +0100 Subject: [PATCH] Dev-server - display fullscreen Cockpit login form --- web/src/DevServerWrapper.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/DevServerWrapper.jsx b/web/src/DevServerWrapper.jsx index f4268f5fec..6d7432d2c3 100644 --- a/web/src/DevServerWrapper.jsx +++ b/web/src/DevServerWrapper.jsx @@ -115,6 +115,9 @@ export default function DevServerWrapper({ children }) { } else { // handle updating the iframe with the login form const onFrameLoad = () => { + // have a full screen login form + document.getElementById("root").style.maxInlineSize = "none"; + const passwordInput = iframeRef.current.contentWindow.document.getElementById(loginId); // reload the window so the manifests.js file referenced from the // index.html file is also loaded again