Skip to content

Commit 7d5bd48

Browse files
#RI-4217-4219 - update styles
1 parent 9aea5cd commit 7d5bd48

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

redisinsight/ui/src/components/uploadFile/UploadFile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { EuiButtonEmpty, EuiText } from '@elastic/eui'
2+
import { EuiButtonEmpty, EuiText, EuiIcon } from '@elastic/eui'
33

44
import styles from './styles.module.scss'
55

@@ -10,18 +10,18 @@ export interface Props {
1010

1111
const UploadFile = ({ onFileChange, onClick }: Props) => (
1212
<EuiButtonEmpty
13-
iconType="folderOpen"
1413
className={styles.emptyBtn}
14+
onClick={onClick}
1515
>
1616
<label htmlFor="upload-input-file" className={styles.uploadBtn}>
17+
<EuiIcon className={styles.icon} type="folderOpen" />
1718
<EuiText className={styles.label}>Upload</EuiText>
1819
<input
1920
type="file"
2021
id="upload-input-file"
2122
data-testid="upload-input-file"
2223
accept="application/json, text/plain"
2324
onChange={onFileChange}
24-
onClick={onClick}
2525
className={styles.fileDrop}
2626
aria-label="Select file"
2727
/>

redisinsight/ui/src/components/uploadFile/styles.module.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.uploadBtn {
66
display: flex;
77
cursor: pointer;
8+
padding: 4px 12px;
89
}
910

1011
.emptyBtn:global(.euiButtonEmpty) {
@@ -13,7 +14,14 @@
1314
}
1415

1516
.emptyBtn:global(.euiButtonEmpty .euiButtonEmpty__content) {
16-
padding: 0 12px;
17+
padding: 0;
18+
}
19+
20+
.emptyBtn .icon {
21+
width: 14px;
22+
height: 14px;
23+
margin-right: 4px;
24+
color: var(--inputTextColor);
1725
}
1826

1927
:global(.euiButtonEmpty.euiButtonEmpty--primary).emptyBtn .label {

redisinsight/ui/src/pages/home/HomePage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,8 @@ const HomePage = () => {
248248
[styles.contentActive]: editDialogIsOpen,
249249
})}
250250
id="form"
251-
minSize="538px"
252251
paddingSize="none"
253-
style={{ minWidth: '512px' }}
252+
style={{ minWidth: '545px' }}
254253
>
255254
{editDialogIsOpen && (
256255
<AddDatabaseContainer

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ const AddStandaloneForm = (props: Props) => {
446446
alignItems="center"
447447
className="footerAddDatabase"
448448
gutterSize="none"
449+
responsive={false}
449450
style={{ height: '68px' }}
450451
>
451452
<EuiFlexItem className="btn-back" grow={false}>
@@ -492,7 +493,7 @@ const AddStandaloneForm = (props: Props) => {
492493
submitIsDisabled={submitIsDisable()}
493494
/>
494495
</EuiFlexGroup>
495-
</EuiFlexItem>
496+
</EuiFlexItem>
496497
</EuiFlexGroup>,
497498
footerEl
498499
)

0 commit comments

Comments
 (0)