Skip to content

Commit b826cfd

Browse files
authored
Merge pull request #3070 from RedisInsight/fe/feature/RI-5444_Enlarge_the_search_index_drop-down
#RI-5444, #RI-5436
2 parents 3fdc300 + b301da2 commit b826cfd

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

redisinsight/ui/src/pages/browser/components/redisearch-key-list/styles.module.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,16 @@
170170
}
171171
}
172172
}
173+
174+
.select {
175+
width: 350px;
176+
position: absolute;
177+
z-index: 1;
178+
179+
:global {
180+
.euiFormControlLayout__childrenWrapper {
181+
width: 200px;
182+
position: relative;
183+
}
184+
}
185+
}

redisinsight/ui/src/pages/home/components/sentinel-connection/sentinel-connection-form/SentinelConnectionForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const SentinelConnectionForm = (props: Props) => {
7272
initialValues,
7373
validate,
7474
enableReinitialize: true,
75+
validateOnMount: true,
7576
onSubmit: (values: any) => {
7677
onSubmit(values)
7778
},

redisinsight/ui/src/pages/home/utils/form.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export const autoFillFormDetails = (
215215
}
216216

217217
case InstanceType.Sentinel: {
218-
return ({
218+
return getFormValues({
219219
host: details.host || initialValues.host || 'localhost',
220220
port: `${details.port || initialValues.port || 9443}`,
221221
username: details.username || '',
@@ -225,7 +225,7 @@ export const autoFillFormDetails = (
225225
}
226226

227227
case InstanceType.Standalone: {
228-
return (getFormValues({
228+
return getFormValues({
229229
name: details.hostname || initialValues.name || 'localhost:6379',
230230
host: details.host || initialValues.host || 'localhost',
231231
port: `${details.port || initialValues.port || 9443}`,
@@ -235,7 +235,7 @@ export const autoFillFormDetails = (
235235
db: details.dbNumber,
236236
ssh: false,
237237
sshPassType: SshPassType.Password
238-
}))
238+
})
239239
}
240240
default: {
241241
return {}

redisinsight/ui/src/styles/base/_overrides.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@
5454
}
5555

5656
body .euiSuperSelect__listbox {
57-
max-height: 340px;
57+
max-height: 350px;
5858
}

0 commit comments

Comments
 (0)