From 94b20727836a0c9103f5c10c566f8777e2aea194 Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Tue, 8 Oct 2024 02:38:56 -0400 Subject: [PATCH] Fix Wifi config dialog layout on large screens. --- react/src/WifiConfigDialog.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/react/src/WifiConfigDialog.tsx b/react/src/WifiConfigDialog.tsx index 1affb61..0fcbc05 100644 --- a/react/src/WifiConfigDialog.tsx +++ b/react/src/WifiConfigDialog.tsx @@ -223,6 +223,10 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( this.state.newPassword; } + onEnterKey() { + this.handleOk(false); + } + handleOk(wifiWarningGiven: boolean) { let hasError = false; if (this.state.autoStartMode !== 0) { @@ -334,8 +338,11 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( }; let enabled = this.state.autoStartMode !== 0; return ( - { this.handleOk(false); }} + > {(this.state.fullScreen || !this.state.compactHeight) && ( Wi-fi Auto-Hotspot @@ -353,8 +360,8 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( }} > - - Auto-start hotspot when + + Auto-start hotspot when...