Skip to content

Commit 90d2267

Browse files
committed
#RI-2750 - Server Name for SNI is not aligned for Add DB full screen
1 parent 3fa6cad commit 90d2267

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm/InstanceForm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,8 @@ const AddStandaloneForm = (props: Props) => {
782782
const TlsDetails = () => (
783783
<>
784784
<EuiFlexGroup
785-
style={{ padding: '12px 0px 15px' }}
786-
className={flexGroupClassName}
785+
className={cx(flexGroupClassName, { [styles.tlsContainer]: !flexGroupClassName })}
786+
alignItems="center"
787787
>
788788
<EuiFlexItem
789789
style={{ width: '230px' }}
@@ -819,7 +819,7 @@ const AddStandaloneForm = (props: Props) => {
819819
/>
820820
</EuiFlexItem>
821821
{formik.values.sni && (
822-
<EuiFlexItem className={flexItemClassName}>
822+
<EuiFlexItem className={flexItemClassName} style={{ flexBasis: '255px' }}>
823823
<EuiFieldText
824824
name="servername"
825825
id="servername"
@@ -836,7 +836,7 @@ const AddStandaloneForm = (props: Props) => {
836836
/>
837837
</EuiFlexItem>
838838
)}
839-
<EuiFlexItem className={flexItemClassName}>
839+
<EuiFlexItem className={cx(flexItemClassName, { [styles.fullWidth]: formik.values.sni })}>
840840
<EuiCheckbox
841841
id={`${htmlIdGenerator()()} verifyServerTlsCert`}
842842
name="verifyServerTlsCert"

redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm/styles.module.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,13 @@
150150
text-decoration: none !important;
151151
}
152152
}
153+
154+
.tlsContainer {
155+
min-height: 90px;
156+
padding: 12px 0 15px;
157+
flex-wrap: wrap;
158+
}
159+
160+
.fullWidth {
161+
flex-basis: 100% !important;
162+
}

0 commit comments

Comments
 (0)