From 0e36f10cf5ad80b80ad266156e186e2a6655e9f9 Mon Sep 17 00:00:00 2001 From: bohandley Date: Thu, 27 Jul 2023 15:14:00 -0400 Subject: [PATCH 1/2] update input width for experimental auth component --- src/ConnectionConfig.tsx | 24 ++++++++++++++---------- src/types.ts | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/ConnectionConfig.tsx b/src/ConnectionConfig.tsx index b11cbe5..c09edff 100644 --- a/src/ConnectionConfig.tsx +++ b/src/ConnectionConfig.tsx @@ -71,6 +71,10 @@ export const ConnectionConfig: FC = (props: ConnectionCon loadRegions().then((regions) => setRegions(regions.map(toOption))); }, [loadRegions]); + const inExperimentalAuthComponent = options.jsonData.inExperimentalAuthComponent; + + const inputWidth = inExperimentalAuthComponent ? "width-20" : "width-30"; + return (
= (props: ConnectionCon > = (props: ConnectionCon <> {props.options.secureJsonFields?.accessKey ? ( - + = (props: ConnectionCon ) : ( @@ -131,7 +135,7 @@ export const ConnectionConfig: FC = (props: ConnectionCon {props.options.secureJsonFields?.secretKey ? ( - + = (props: ConnectionCon ) : ( @@ -161,7 +165,7 @@ export const ConnectionConfig: FC = (props: ConnectionCon > = (props: ConnectionCon > = (props: ConnectionCon > = (props: ConnectionCon >