Skip to content

Commit 2b5bb3b

Browse files
address design feedback
1 parent f5205b8 commit 2b5bb3b

1 file changed

Lines changed: 14 additions & 24 deletions

File tree

  • x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/test_pipeline/documents_dropdown

x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/test_pipeline/documents_dropdown/documents_dropdown.tsx

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ import React, { FunctionComponent, useState } from 'react';
88
import {
99
EuiButton,
1010
EuiPopover,
11+
EuiPopoverFooter,
1112
EuiButtonEmpty,
1213
EuiPopoverTitle,
1314
EuiSelectable,
14-
EuiHorizontalRule,
15-
EuiFlexGroup,
16-
EuiFlexItem,
17-
EuiSpacer,
1815
} from '@elastic/eui';
1916

2017
import { Document } from '../../../types';
@@ -117,26 +114,19 @@ export const DocumentsDropdown: FunctionComponent<Props> = ({
117114
)}
118115
</EuiSelectable>
119116

120-
<EuiHorizontalRule margin="xs" />
121-
122-
<EuiSpacer size="s" />
123-
124-
<EuiFlexGroup justifyContent="center" gutterSize="xs">
125-
<EuiFlexItem grow={false}>
126-
<EuiButton
127-
size="s"
128-
onClick={() => {
129-
openFlyout('documents');
130-
setShowPopover(false);
131-
}}
132-
data-test-subj="editDocumentsButton"
133-
>
134-
{i18nTexts.addDocumentsButtonLabel}
135-
</EuiButton>
136-
</EuiFlexItem>
137-
</EuiFlexGroup>
138-
139-
<EuiSpacer size="s" />
117+
<EuiPopoverFooter>
118+
<EuiButton
119+
size="s"
120+
fullWidth
121+
onClick={() => {
122+
openFlyout('documents');
123+
setShowPopover(false);
124+
}}
125+
data-test-subj="editDocumentsButton"
126+
>
127+
{i18nTexts.addDocumentsButtonLabel}
128+
</EuiButton>
129+
</EuiPopoverFooter>
140130
</EuiPopover>
141131
);
142132
};

0 commit comments

Comments
 (0)