File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
components/AddInstanceForm/InstanceForm Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import { EuiButtonEmpty , EuiText } from '@elastic/eui'
2
+ import { EuiButtonEmpty , EuiText , EuiIcon } from '@elastic/eui'
3
3
4
4
import styles from './styles.module.scss'
5
5
@@ -10,18 +10,18 @@ export interface Props {
10
10
11
11
const UploadFile = ( { onFileChange, onClick } : Props ) => (
12
12
< EuiButtonEmpty
13
- iconType = "folderOpen"
14
13
className = { styles . emptyBtn }
14
+ onClick = { onClick }
15
15
>
16
16
< label htmlFor = "upload-input-file" className = { styles . uploadBtn } >
17
+ < EuiIcon className = { styles . icon } type = "folderOpen" />
17
18
< EuiText className = { styles . label } > Upload</ EuiText >
18
19
< input
19
20
type = "file"
20
21
id = "upload-input-file"
21
22
data-testid = "upload-input-file"
22
23
accept = "application/json, text/plain"
23
24
onChange = { onFileChange }
24
- onClick = { onClick }
25
25
className = { styles . fileDrop }
26
26
aria-label = "Select file"
27
27
/>
Original file line number Diff line number Diff line change 5
5
.uploadBtn {
6
6
display : flex ;
7
7
cursor : pointer ;
8
+ padding : 4px 12px ;
8
9
}
9
10
10
11
.emptyBtn :global(.euiButtonEmpty ) {
13
14
}
14
15
15
16
.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 );
17
25
}
18
26
19
27
:global(.euiButtonEmpty.euiButtonEmpty--primary ).emptyBtn .label {
Original file line number Diff line number Diff line change @@ -248,9 +248,8 @@ const HomePage = () => {
248
248
[ styles . contentActive ] : editDialogIsOpen ,
249
249
} ) }
250
250
id = "form"
251
- minSize = "538px"
252
251
paddingSize = "none"
253
- style = { { minWidth : '512px ' } }
252
+ style = { { minWidth : '545px ' } }
254
253
>
255
254
{ editDialogIsOpen && (
256
255
< AddDatabaseContainer
Original file line number Diff line number Diff line change @@ -446,6 +446,7 @@ const AddStandaloneForm = (props: Props) => {
446
446
alignItems = "center"
447
447
className = "footerAddDatabase"
448
448
gutterSize = "none"
449
+ responsive = { false }
449
450
style = { { height : '68px' } }
450
451
>
451
452
< EuiFlexItem className = "btn-back" grow = { false } >
@@ -492,7 +493,7 @@ const AddStandaloneForm = (props: Props) => {
492
493
submitIsDisabled = { submitIsDisable ( ) }
493
494
/>
494
495
</ EuiFlexGroup >
495
- </ EuiFlexItem >
496
+ </ EuiFlexItem >
496
497
</ EuiFlexGroup > ,
497
498
footerEl
498
499
)
You can’t perform that action at this time.
0 commit comments