Skip to content

Commit 271a90f

Browse files
committed
fix spacing around security items
1 parent 8bf5f1a commit 271a90f

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
},
66
"[typescript]": {
77
"editor.defaultFormatter": "esbenp.prettier-vscode"
8+
},
9+
"[typescriptreact]": {
10+
"editor.defaultFormatter": "esbenp.prettier-vscode"
811
}
912
}

redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/forms/AddConnection.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ const AddConnection = (props: Props) => {
7979
/>
8080
{buildType !== BuildType.RedisStack && (
8181
<>
82+
<Spacer />
8283
<Divider
8384
colorVariable="separatorColor"
8485
variant="fullWidth"
8586
/>
87+
<Spacer />
8688
<SSHDetails formik={formik} />
8789
</>
8890
)}

redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/forms/EditConnection.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
SSHDetails,
88
TlsDetails,
99
} from 'uiSrc/pages/home/components/form'
10+
import { Spacer } from 'uiSrc/components/base/layout'
1011
import Divider from 'uiSrc/components/divider/Divider'
1112
import { BuildType } from 'uiSrc/constants/env'
1213
import { DbConnectionInfo } from 'uiSrc/pages/home/interfaces'
@@ -61,17 +62,11 @@ const EditConnection = (props: Props) => {
6162
autoFocus={!isCloneMode && isEditMode}
6263
onHostNamePaste={onHostNamePaste}
6364
/>
64-
<Divider
65-
colorVariable="separatorColor"
66-
variant="fullWidth"
67-
/>
65+
<Divider colorVariable="separatorColor" variant="fullWidth" />
6866
<ForceStandalone formik={formik} />
6967
{isCloneMode && (
7068
<>
71-
<Divider
72-
colorVariable="separatorColor"
73-
variant="fullWidth"
74-
/>
69+
<Divider colorVariable="separatorColor" variant="fullWidth" />
7570
<DbIndex formik={formik} />
7671
</>
7772
)}
@@ -86,10 +81,9 @@ const EditConnection = (props: Props) => {
8681
/>
8782
{buildType !== BuildType.RedisStack && (
8883
<>
89-
<Divider
90-
colorVariable="separatorColor"
91-
variant="fullWidth"
92-
/>
84+
<Spacer />
85+
<Divider colorVariable="separatorColor" variant="fullWidth" />
86+
<Spacer />
9387
<SSHDetails formik={formik} />
9488
</>
9589
)}

0 commit comments

Comments
 (0)